mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
hotkeys: Show Level 2 Shift key symbol for Shift key in popovers.
This commit is contained in:
@@ -113,6 +113,19 @@ export function adjust_mac_hotkey_hints(hotkeys: string[]): void {
|
||||
}
|
||||
}
|
||||
|
||||
// We convert the Shift key with ⇧ (Level 2 Select Symbol) in the
|
||||
// popover menu hotkey hints. This helps us reduce the width of
|
||||
// the popover menus.
|
||||
export function adjust_shift_hotkey(hotkeys: string[]): boolean {
|
||||
for (const [index, hotkey] of hotkeys.entries()) {
|
||||
if (hotkey === "Shift") {
|
||||
hotkeys[index] = "⇧";
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// See https://zulip.readthedocs.io/en/latest/development/authentication.html#password-form-implementation
|
||||
// for design details on this feature.
|
||||
function set_password_toggle_label(
|
||||
|
||||
Reference in New Issue
Block a user