Skip to content
Snippets Groups Projects
Commit 12f080f4 authored by deuce's avatar deuce
Browse files

Expand on comment.

Only use K_GETSTR if user.settings&USER_SPIN
(To avoid triple the ESC delay when not necessary)
parent 9da4ad4b
Branches
Tags
No related merge requests found
......@@ -343,9 +343,10 @@ function Lightbar_getval(current)
/* Get input */
/*
* ToDo: K_GETSTR is to ensure that the users SPIN mode isn't used
* This is a hack.
* This is a hack which triples the time that an ESC takes to be
* procesed.
*/
var key=console.getkey(K_UPPER|K_GETSTR);
var key=console.getkey(K_UPPER|(user.settings&USER_SPIN?K_GETSTR:0));
if(this.hotkeys.indexOf(key)!=-1)
return(key);
switch(key) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment