mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 12:23:36 +08:00
FIX: correctly shortcut format on mac (#28556)
On windows + are shown between keys, not on mac. The fix was to wrap the whole shortcut in `translateModKey`.
This commit is contained in:
parent
fe3d82a44a
commit
fbc485c218
|
@ -27,8 +27,8 @@ export default class ToolbarPopupMenuOptions extends DropdownSelectBoxComponent
|
|||
label = I18n.t(content.label);
|
||||
if (content.shortcut) {
|
||||
label += ` <kbd class="shortcut">${translateModKey(
|
||||
PLATFORM_KEY_MODIFIER
|
||||
)}+${translateModKey(content.shortcut)}</kbd>`;
|
||||
PLATFORM_KEY_MODIFIER + "+" + content.shortcut
|
||||
)}</kbd>`;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -37,8 +37,8 @@ export default class ToolbarPopupMenuOptions extends DropdownSelectBoxComponent
|
|||
title = I18n.t(content.title);
|
||||
if (content.shortcut) {
|
||||
title += ` (${translateModKey(
|
||||
PLATFORM_KEY_MODIFIER
|
||||
)}+${translateModKey(content.shortcut)})`;
|
||||
PLATFORM_KEY_MODIFIER + "+" + content.shortcut
|
||||
)})`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user