mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-15 18:28:51 +00:00
(js) Improve hotkeys cheat sheet
Add mapping for '*' character code and remove hotkeys from cheat sheet when no callback is registered.
This commit is contained in:
@@ -71,6 +71,7 @@
|
||||
};
|
||||
// Char-code values for characters that require a key combinations
|
||||
var CHAR_CODES = {
|
||||
42: '*',
|
||||
63: '?'
|
||||
};
|
||||
|
||||
@@ -272,6 +273,8 @@
|
||||
ret = callbackArray.splice(i, 1);
|
||||
}
|
||||
}
|
||||
if (callbackArray.length === 0)
|
||||
delete this._hotkeys[hotkey.key];
|
||||
}
|
||||
return ret;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user