input field looses focus when clicking buttons
Aerilius opened this issue · 4 comments
When clicking buttons like "clear", the input field has no focus anymore (this is default behavior). The user has to click the input field again to continue typing.
For convenience, wouldn't it be good to focus the input field after every button click?
Where would we add this, to the initialization of click handlers (console.js lines 148ff), to each function (like console.clearContent
) or better loop over all buttons and add a second event handler?
I'd say second event handler that automates this in case the UI is changed.
+1 making this tweak. Second handler seems reasonable.
It's probably not necessary at all (I can't reproduce anymore how it once didn't get focus). According to the code, every keydown that is not a shortcut gives focus to the input field: 5749598#L12R886
Verify and close.