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:
N-Shar-ma 2023-03-09 02:19:08 +05:30 committed by Tim Abbott
parent c6ba33b7b4
commit 1480eca7d5
2 changed files with 4 additions and 4 deletions

View File

@ -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");

View File

@ -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("*");