fix key input bug when dialog showing
This commit is contained in:
parent
936f5505b1
commit
3afe3eb9b6
1 changed files with 1 additions and 4 deletions
|
|
@ -2926,10 +2926,7 @@ self.kiri.license = exports.LICENSE;
|
|||
var handled = true,
|
||||
style, sel, i, m, bb,
|
||||
ncc = evt.charCode - 48;
|
||||
if (modalShowing()) return false;
|
||||
if (inputHasFocus() && (inputSize() > 10 || (ncc >= 0 && ncc <= 9))) {
|
||||
return false;
|
||||
}
|
||||
if (modalShowing() || inputHasFocus()) return false;
|
||||
switch (evt.charCode) {
|
||||
case cca('`'): showSlices(0); break;
|
||||
case cca('0'): showSlices(showLayerMax); break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue