mirror of https://github.com/zulip/zulip.git
Rename simulate_keypress; we're really faking a keydown event.
(imported from commit 2574afb738787311bc32885d36eaed862925d39c)
This commit is contained in:
parent
c02c6cc954
commit
6094f46b3a
|
@ -27,7 +27,7 @@ var directional_hotkeys = {
|
|||
35: get_last_visible // End
|
||||
};
|
||||
|
||||
function simulate_keypress(keycode) {
|
||||
function simulate_keydown(keycode) {
|
||||
$(document).trigger($.Event('keydown', {keyCode: keycode}));
|
||||
}
|
||||
|
||||
|
@ -103,7 +103,7 @@ function process_compose_hotkey(code) {
|
|||
return process_compose_hotkey;
|
||||
} else {
|
||||
set_keydown_in_input(true);
|
||||
simulate_keypress(code);
|
||||
simulate_keydown(code);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue