mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
hotkey: Update deprecation notice for '*' hotkey.
This PR updates the shortcut of the deprecation notice for '*' hotkey. On macOS, it should be 'Cmd + s' instead of 'Ctrl'.
This commit is contained in:
@@ -134,10 +134,11 @@ exports.get_hotkey_deprecation_notice = function (originalHotkey, replacementHot
|
||||
var shown_deprecation_notices = [];
|
||||
exports.maybe_show_deprecation_notice = function (key) {
|
||||
var message;
|
||||
var isCmdOrCtrl = /Mac/i.test(navigator.userAgent) ? "Cmd" : "Ctrl";
|
||||
if (key === 'C') {
|
||||
message = exports.get_hotkey_deprecation_notice('C', 'x');
|
||||
} else if (key === '*') {
|
||||
message = exports.get_hotkey_deprecation_notice('*', 'Ctrl + s');
|
||||
message = exports.get_hotkey_deprecation_notice("*", isCmdOrCtrl + " + s");
|
||||
} else {
|
||||
blueslip.error("Unexpected deprecation notice for hotkey:", key);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user