mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fixes #346 by blurring disabled buttons
This commit is contained in:
parent
26f4448175
commit
6f5e2f130e
@ -61,6 +61,8 @@
|
||||
var button = document.querySelector('.layers-button[data-action="' + buttonAction + '"]');
|
||||
if (isDisabled) {
|
||||
button.setAttribute('disabled', 'disabled');
|
||||
// Disabled/focused buttons consume key events on Firefox, so make sure to blur.
|
||||
button.blur();
|
||||
} else {
|
||||
button.removeAttribute('disabled');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user