diff options
| author | 2014-10-04 09:06:35 -0400 | |
|---|---|---|
| committer | 2014-10-04 09:06:35 -0400 | |
| commit | 38a6f0c4b29e5a53c21f345dd839a4fa0b2a6f47 (patch) | |
| tree | 54963ad3e81ff9079a1793e64935866d3d3814a0 /p/scripts | |
| parent | 783171011dc6256f37cbd4365f5405b5e8a4b44e (diff) | |
Add a shortcut to close drop-down lists
Diffstat (limited to 'p/scripts')
| -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 37281a907..0d90d3d39 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -663,6 +663,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) { |
