mirror of https://github.com/calzoneman/sync.git
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:
parent
d7d3534d62
commit
9938f2c605
|
@ -383,7 +383,7 @@ $("#queue_end").click(queue.bind(this, "end", "url"));
|
|||
$("#ce_queue_next").click(queue.bind(this, "next", "customembed"));
|
||||
$("#ce_queue_end").click(queue.bind(this, "end", "customembed"));
|
||||
|
||||
$("#mediaurl").keyup(function(ev) {
|
||||
$("#mediaurl").keydown(function(ev) {
|
||||
if (ev.keyCode === 13) {
|
||||
queue("end", "url");
|
||||
} else {
|
||||
|
@ -416,7 +416,7 @@ $("#mediaurl").keyup(function(ev) {
|
|||
$("<input/>").addClass("form-control")
|
||||
.attr("type", "text")
|
||||
.attr("id", "addfromurl-title-val")
|
||||
.keyup(function (ev) {
|
||||
.keydown(function (ev) {
|
||||
if (ev.keyCode === 13) {
|
||||
queue("end", "url");
|
||||
}
|
||||
|
@ -546,7 +546,7 @@ $(".cs-checkbox").change(function () {
|
|||
socket.emit("setOptions", data);
|
||||
});
|
||||
|
||||
$(".cs-textbox").keyup(function () {
|
||||
$(".cs-textbox").keydown(function () {
|
||||
var box = $(this);
|
||||
var key = box.attr("id").replace("cs-", "");
|
||||
var value = box.val();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue