Consume page key buffer even when clInput is not focused

This commit is contained in:
petoncle 2023-10-30 17:35:28 +01:00
parent 38252b1388
commit 01b2ba8516

View file

@ -167,8 +167,6 @@ export function focus() {
const clInputStillFocused = window.document.activeElement === commandline_state.clInput;
logger.debug("buffered_page_keys response received", bufferedPageKeys,
"clInputStillFocused = " + clInputStillFocused)
if (!clInputStillFocused)
return
if (bufferedPageKeys.length !== 0) {
const currentClInputValue = commandline_state.clInput.value;
const initialClInputValue = commandline_state.initialClInputValue;