backspace
This commit is contained in:
parent
fb92ae8ae5
commit
4df8dcc185
@ -733,6 +733,9 @@
|
|||||||
if (!(key = keybinds.cb.keyCode(e))) {
|
if (!(key = keybinds.cb.keyCode(e))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (key === 'BS') {
|
||||||
|
key = '';
|
||||||
|
}
|
||||||
thread = nav.getThread();
|
thread = nav.getThread();
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case conf.close:
|
case conf.close:
|
||||||
@ -841,6 +844,8 @@
|
|||||||
key = String.fromCharCode(kc);
|
key = String.fromCharCode(kc);
|
||||||
} else if (kc === 27) {
|
} else if (kc === 27) {
|
||||||
key = 'Esc';
|
key = 'Esc';
|
||||||
|
} else if (kc === 8) {
|
||||||
|
key = 'BS';
|
||||||
} else {
|
} else {
|
||||||
key = '';
|
key = '';
|
||||||
}
|
}
|
||||||
@ -1131,6 +1136,9 @@
|
|||||||
if (!(key = keybinds.cb.keyCode(e))) {
|
if (!(key = keybinds.cb.keyCode(e))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (key === 'BS') {
|
||||||
|
key = '';
|
||||||
|
}
|
||||||
this.value = key;
|
this.value = key;
|
||||||
$.setValue(this.name, key);
|
$.setValue(this.name, key);
|
||||||
return conf[this.name] = key;
|
return conf[this.name] = key;
|
||||||
|
|||||||
@ -521,6 +521,7 @@ keybinds =
|
|||||||
keydown: (e) ->
|
keydown: (e) ->
|
||||||
return if e.target.nodeName in ['TEXTAREA', 'INPUT'] and not e.altKey and not e.ctrlKey and not (e.keyCode is 27)
|
return if e.target.nodeName in ['TEXTAREA', 'INPUT'] and not e.altKey and not e.ctrlKey and not (e.keyCode is 27)
|
||||||
return unless key = keybinds.cb.keyCode e
|
return unless key = keybinds.cb.keyCode e
|
||||||
|
if key is 'BS' then key = ''
|
||||||
|
|
||||||
thread = nav.getThread()
|
thread = nav.getThread()
|
||||||
switch key
|
switch key
|
||||||
@ -601,6 +602,8 @@ keybinds =
|
|||||||
key = String.fromCharCode kc
|
key = String.fromCharCode kc
|
||||||
else if kc is 27
|
else if kc is 27
|
||||||
key = 'Esc'
|
key = 'Esc'
|
||||||
|
else if kc is 8
|
||||||
|
key = 'BS'
|
||||||
else
|
else
|
||||||
key = ''
|
key = ''
|
||||||
if key
|
if key
|
||||||
@ -892,6 +895,7 @@ options =
|
|||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
return unless key = keybinds.cb.keyCode e
|
return unless key = keybinds.cb.keyCode e
|
||||||
|
if key is 'BS' then key = ''
|
||||||
@value = key
|
@value = key
|
||||||
$.setValue @name, key
|
$.setValue @name, key
|
||||||
conf[@name] = key
|
conf[@name] = key
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user