Change all textbox keyup to keydown

Fixes an issue repoted by dragondread in IRC where a popup character map
was unintentionally triggering the keyup event after a character was
selected.
This commit is contained in:
calzoneman 2015-02-13 13:40:58 -06:00
parent d7d3534d62
commit 9938f2c605
2 changed files with 5 additions and 5 deletions

View file

@ -2399,7 +2399,7 @@ function formatCSEmoteList() {
};
edit.blur(finish);
edit.keyup(function (ev) {
edit.keydown(function (ev) {
if (ev.keyCode === 13) {
finish();
}
@ -2550,7 +2550,7 @@ function initPm(user) {
var input = $("<input/>").addClass("form-control pm-input").attr("type", "text")
.appendTo(body);
input.keyup(function (ev) {
input.keydown(function (ev) {
if (ev.keyCode === 13) {
var meta = {};
var msg = input.val();