diff --git a/static/js/hotkey.js b/static/js/hotkey.js index e02412dee1..5b0cc5c2fa 100644 --- a/static/js/hotkey.js +++ b/static/js/hotkey.js @@ -51,6 +51,9 @@ var keydown_unshift_mappings = { 40: {name: 'down_arrow', message_view_only: true}, // down arrow }; +var keydown_ctrl_mappings = { +}; + var keydown_either_mappings = { // these can be triggered by key or shift + key // Note that codes for letters are still case sensitive! @@ -110,11 +113,19 @@ exports.tab_up_down = (function () { }()); exports.get_keydown_hotkey = function (e) { - if (e.metaKey || e.ctrlKey || e.altKey) { + if (e.metaKey || e.altKey) { return; } var hotkey; + if (e.ctrlKey) { + hotkey = keydown_ctrl_mappings[e.which]; + if (hotkey) { + return hotkey; + } + return; + } + if (e.shiftKey) { hotkey = keydown_shift_mappings[e.which]; if (hotkey) {