Rename simulate_keypress; we're really faking a keydown event.

(imported from commit 2574afb738787311bc32885d36eaed862925d39c)
This commit is contained in:
Luke Faraone 2012-10-02 15:41:40 -04:00
parent c02c6cc954
commit 6094f46b3a
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}
}