Skip to content
Snippets Groups Projects
Commit 27f42c16 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Merge branch 'dd_lightbar_menu_pgup_pgdown_defs' into 'master'

dd_lightbar_menu.js: Changed the older KEY_PAGE_UP to KEY_PAGEUP and KEY_PAGE_DOWN to KEY_PAGEDN, as defined in key_defs.js

See merge request !433
parents 09911cce ec046676
No related branches found
No related tags found
2 merge requests!455Update branch with changes from master,!433dd_lightbar_menu.js: Changed the older KEY_PAGE_UP to KEY_PAGEUP and KEY_PAGE_DOWN to KEY_PAGEDN, as defined in key_defs.js
...@@ -3955,7 +3955,7 @@ function printedToRealIdxInStr(pStr, pIdx) ...@@ -3955,7 +3955,7 @@ function printedToRealIdxInStr(pStr, pIdx)
// Inputs a keypress from the user and handles some ESC-based // Inputs a keypress from the user and handles some ESC-based
// characters such as PageUp, PageDown, and ESC. If PageUp // characters such as PageUp, PageDown, and ESC. If PageUp
// or PageDown are pressed, this function will return the // or PageDown are pressed, this function will return the
// string defined by KEY_PAGE_UP or EY_PAGE_DOWN, // string defined by KEY_PAGEUP or KEY_PAGEDN (from key_defs.js),
// respectively. Also, F1-F5 will be returned as "\x01F1" // respectively. Also, F1-F5 will be returned as "\x01F1"
// through "\x01F5", respectively. // through "\x01F5", respectively.
// Thanks goes to Psi-Jack for the original impementation // Thanks goes to Psi-Jack for the original impementation
...@@ -3989,10 +3989,10 @@ function getKeyWithESCChars(pGetKeyMode, pInputTimeoutMS) ...@@ -3989,10 +3989,10 @@ function getKeyWithESCChars(pGetKeyMode, pInputTimeoutMS)
switch (console.inkey(K_NOECHO|K_NOSPIN, 2)) switch (console.inkey(K_NOECHO|K_NOSPIN, 2))
{ {
case 'V': case 'V':
userInput = KEY_PAGE_UP; userInput = KEY_PAGEUP;
break; break;
case 'U': case 'U':
userInput = KEY_PAGE_DOWN; userInput = KEY_PAGEDN;
break; break;
} }
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment