mirror of
https://github.com/vale981/tridactyl
synced 2025-03-04 17:11:40 -05:00
Buffer page keys only for commands that open and focus the cmdline
This commit is contained in:
parent
ba977dc6ba
commit
ac7d7e577b
2 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@ export function focus() {
|
||||||
logger.debug("Consuming buffered page keys", bufferedPageKeys,
|
logger.debug("Consuming buffered page keys", bufferedPageKeys,
|
||||||
"initialClInputValue = " + initialClInputValue,
|
"initialClInputValue = " + initialClInputValue,
|
||||||
"currentClInputValue = " + currentClInputValue);
|
"currentClInputValue = " + currentClInputValue);
|
||||||
// Native events are assumed to be character keydowns events,
|
// Native events are assumed to be character keydown events,
|
||||||
// i.e. characters appended at the end of clInput.
|
// i.e. characters appended at the end of clInput.
|
||||||
commandline_state.clInput.value =
|
commandline_state.clInput.value =
|
||||||
initialClInputValue
|
initialClInputValue
|
||||||
|
|
|
@ -212,7 +212,7 @@ function* ParserController() {
|
||||||
|
|
||||||
if (response.exstr) {
|
if (response.exstr) {
|
||||||
exstr = response.exstr
|
exstr = response.exstr
|
||||||
if (exstr.startsWith("fillcmdline")) { // TODO That's ugly. I need a way to know if this command is going to open the command line. Is there a better way?
|
if (exstr === "fillcmdline" || exstr === "fillcmdline_notrail") {
|
||||||
logger.debug("Starting buffering of page keys")
|
logger.debug("Starting buffering of page keys")
|
||||||
bufferingPageKeysBeginTime = performance.now()
|
bufferingPageKeysBeginTime = performance.now()
|
||||||
mustBufferPageKeysForClInput = true
|
mustBufferPageKeysForClInput = true
|
||||||
|
|
Loading…
Add table
Reference in a new issue