Immediate rebind.
This commit is contained in:
parent
278ff8a2e2
commit
17cc6262b1
@ -1134,6 +1134,7 @@
|
||||
keybind: function(e) {
|
||||
var kc, key;
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
kc = e.keyCode;
|
||||
if ((65 <= kc && kc <= 90)) {
|
||||
key = String.fromCharCode(kc);
|
||||
@ -1157,7 +1158,8 @@
|
||||
}
|
||||
}
|
||||
this.value = key;
|
||||
return $.setValue("key/" + this.name, key);
|
||||
$.setValue("key/" + this.name, key);
|
||||
return keybinds[this.name] = key;
|
||||
}
|
||||
},
|
||||
time: function(e) {
|
||||
|
||||
@ -905,6 +905,7 @@ options =
|
||||
g.hiddenReplies = {}
|
||||
keybind: (e) ->
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
kc = e.keyCode
|
||||
if 65 <= kc <= 90 #A-Z
|
||||
key = String.fromCharCode kc
|
||||
@ -923,6 +924,7 @@ options =
|
||||
key = 'ctrl+' + key if e.ctrlKey
|
||||
@value = key
|
||||
$.setValue "key/#{@name}", key
|
||||
keybinds[@name] = key
|
||||
time: (e) ->
|
||||
$.setValue 'time', @value
|
||||
Time.foo()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user