mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
Let arrow keys do the right thing for select widgets.
This helps the edit form in particular, when you change a topic and need to select the propagation option. (imported from commit c9dd1e62cd9e0b2142855685f04baa06eecf7226)
This commit is contained in:
@@ -180,8 +180,8 @@ function process_hotkey(e) {
|
||||
}
|
||||
}
|
||||
|
||||
// Process hotkeys specially when in an input, textarea, or send button
|
||||
if ($('input:focus,textarea:focus,#compose-send-button:focus').length > 0) {
|
||||
// Process hotkeys specially when in an input, select, textarea, or send button
|
||||
if ($('input:focus,select:focus,textarea:focus,#compose-send-button:focus').length > 0) {
|
||||
if (event_name === 'escape') {
|
||||
// If one of our typeaheads is open, do nothing so that the Esc
|
||||
// will go to close it
|
||||
|
||||
Reference in New Issue
Block a user