Esc/Enter should only close colorpicker

fixes #401
This commit is contained in:
tophf 2018-06-15 07:35:46 +03:00
parent 28fe59f8c2
commit 7fea2cfc9c

View File

@ -620,10 +620,7 @@
if (!e.shiftKey && !e.ctrlKey && !e.altKey && !e.metaKey) {
switch (e.which) {
case 13:
setFromInputs({});
// fallthrough to 27
case 27:
colorpickerCallback(e.which === 27 ? '' : undefined);
e.preventDefault();
e.stopPropagation();
hide({notify: false});