disallow Space as a colorpicker hotkey
This commit is contained in:
parent
d2826d92f6
commit
8bff4a297e
|
@ -79,7 +79,7 @@ window.initColorpicker = () => {
|
||||||
if (key === 'Enter' || key === 'Esc') {
|
if (key === 'Enter' || key === 'Esc') {
|
||||||
$('#help-popup .dismiss').onclick();
|
$('#help-popup .dismiss').onclick();
|
||||||
return;
|
return;
|
||||||
} else if (/^((Shift-)?(Esc|Tab|[!-~])|(Shift-?|Ctrl-?|Alt-?|Cmd-?)*)$/.test(key)) {
|
} else if (/^(Space|(Shift-)?(Esc|Tab|[!-~])|(Shift-?|Ctrl-?|Alt-?|Cmd-?)*)$/.test(key)) {
|
||||||
this.setCustomValidity('Not allowed');
|
this.setCustomValidity('Not allowed');
|
||||||
} else {
|
} else {
|
||||||
this.setCustomValidity('');
|
this.setCustomValidity('');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user