diff options
| author | 2014-10-04 15:39:07 +0200 | |
|---|---|---|
| committer | 2014-10-04 15:39:07 +0200 | |
| commit | 099f5ab760602e9b08b804cecd1eb41442cd1b62 (patch) | |
| tree | aa1b7a53827407f2c079c83dcabc9243b6ba1041 /p | |
| parent | 0a60a1a71e32fa29518705a4f194c8025d8164bf (diff) | |
| parent | 38a6f0c4b29e5a53c21f345dd839a4fa0b2a6f47 (diff) | |
Merge pull request #654 from aledeg/new-shortcut
Add a shortcut to close drop-down lists
Diffstat (limited to 'p')
| -rw-r--r-- | p/scripts/main.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index 02d16ca64..79a34ec29 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -661,6 +661,12 @@ function init_shortcuts() { 'disable_in_input': true }); + shortcut.add(shortcuts.close_dropdown, function () { + window.location.hash = null; + }, { + 'disable_in_input': true + }); + } function init_stream(divStream) { |
