mirror of https://github.com/zulip/zulip.git
hotkey: Update deprecation notices to use Shift for capital letters.
To make the deprecation notices consistent with how we format shortcut keys, we use "Shift +" prefix for capital letters, and write small letters as capitals.
This commit is contained in:
parent
c6ba33b7b4
commit
1480eca7d5
|
@ -20,11 +20,11 @@ export function maybe_show_deprecation_notice(key) {
|
|||
let message;
|
||||
const isCmdOrCtrl = common.has_mac_keyboard() ? "Cmd" : "Ctrl";
|
||||
switch (key) {
|
||||
case "C":
|
||||
message = get_hotkey_deprecation_notice("C", "x");
|
||||
case "Shift + C":
|
||||
message = get_hotkey_deprecation_notice("Shift + C", "X");
|
||||
break;
|
||||
case "*":
|
||||
message = get_hotkey_deprecation_notice("*", isCmdOrCtrl + " + s");
|
||||
message = get_hotkey_deprecation_notice("*", isCmdOrCtrl + " + S");
|
||||
break;
|
||||
case "Shift + S":
|
||||
message = get_hotkey_deprecation_notice("Shift + S", "S");
|
||||
|
|
|
@ -881,7 +881,7 @@ export function process_hotkey(e, hotkey) {
|
|||
browser_history.go_to_location("drafts");
|
||||
return true;
|
||||
case "C_deprecated":
|
||||
deprecated_feature_notice.maybe_show_deprecation_notice("C");
|
||||
deprecated_feature_notice.maybe_show_deprecation_notice("Shift + C");
|
||||
return true;
|
||||
case "star_deprecated":
|
||||
deprecated_feature_notice.maybe_show_deprecation_notice("*");
|
||||
|
|
Loading…
Reference in New Issue