mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +00:00
static/js/common: Extract function has_mac_keyboard.
This commit is contained in:
committed by
Tim Abbott
parent
e2549b3b84
commit
371343709b
@@ -139,7 +139,7 @@ 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";
|
||||
var isCmdOrCtrl = common.has_mac_keyboard() ? "Cmd" : "Ctrl";
|
||||
if (key === 'C') {
|
||||
message = exports.get_hotkey_deprecation_notice('C', 'x');
|
||||
} else if (key === '*') {
|
||||
|
||||
Reference in New Issue
Block a user