Add ctrl+[ hotkey.

Fixes #4016.
This commit is contained in:
Joshua Pan 2017-03-19 18:05:34 +00:00 committed by Tim Abbott
parent fcbc2e0cb9
commit c053f786f7
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,7 @@ var keydown_unshift_mappings = {
};
var keydown_ctrl_mappings = {
219: {name: 'esc_ctrl', message_view_only: false}, // '['
};
var keydown_either_mappings = {
@ -389,6 +390,8 @@ exports.process_hotkey = function (e, hotkey) {
return exports.process_tab_key();
case 'shift_tab':
return exports.process_shift_tab_key();
case 'esc_ctrl':
return exports.process_escape_key(e);
}
if (hotkey.message_view_only && ui_state.home_tab_obscured()) {