aboutsummaryrefslogtreecommitdiff
path: root/PuzzleApplet.java
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2022-11-19 16:30:28 +0000
committerBen Harris <bjh21@bjh21.me.uk>2022-11-23 21:56:42 +0000
commit2d439dd00ed41c697a917c7445e143ae10ff5e74 (patch)
treeb53958b61ebc94b8f013b31548481bdaba039134 /PuzzleApplet.java
parent8445f07827eb13db005aa38b7f665f8154e3918c (diff)
downloadpuzzles-2d439dd00ed41c697a917c7445e143ae10ff5e74.zip
puzzles-2d439dd00ed41c697a917c7445e143ae10ff5e74.tar.gz
puzzles-2d439dd00ed41c697a917c7445e143ae10ff5e74.tar.bz2
puzzles-2d439dd00ed41c697a917c7445e143ae10ff5e74.tar.xz
js: Move focus-tracking to entirely "focus" events
When we disable a button, it loses focus but doesn't generate a "blur" event. This means our "focus-within" class goes wrong. Instead of relying on "blur" events to remove the class, remove it from any inappropriate elements in the "focus" handler. This requires attaching the handler to the root element of the document, but I've got plans that need that anyway.
Diffstat (limited to 'PuzzleApplet.java')
0 files changed, 0 insertions, 0 deletions