Add "scroll_lock" key (#800)

Added "scroll_lock" equates to KeyEvent.KEYCODE_SCROLL_LOCK
This commit is contained in:
DocJr90 2024-11-11 10:28:59 -05:00 committed by GitHub
parent 70365b48d4
commit fcbaa23ccf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 1 deletions

View File

@ -46,7 +46,8 @@ These keys are sent to apps, which are free to ignore them. The keyboard does no
`page_up`, `page_down`, `page_up`, `page_down`,
`home`, `end`, `home`, `end`,
`backspace`, `delete`, `backspace`, `delete`,
`insert`, `f1`-`f12`, `insert`, `scroll_lock`,
`f1`-`f12`,
`tab`, `copy`, `tab`, `copy`,
`paste`, `cut`, `paste`, `cut`,
`selectAll`, `pasteAsPlainText`, `selectAll`, `pasteAsPlainText`,

View File

@ -605,6 +605,7 @@ public final class KeyValue implements Comparable<KeyValue>
case "f12": return keyeventKey("F12", KeyEvent.KEYCODE_F12, FLAG_SMALLER_FONT); case "f12": return keyeventKey("F12", KeyEvent.KEYCODE_F12, FLAG_SMALLER_FONT);
case "tab": return keyeventKey(0xE00F, KeyEvent.KEYCODE_TAB, FLAG_SMALLER_FONT); case "tab": return keyeventKey(0xE00F, KeyEvent.KEYCODE_TAB, FLAG_SMALLER_FONT);
case "menu": return keyeventKey("Menu", KeyEvent.KEYCODE_MENU, FLAG_SMALLER_FONT); case "menu": return keyeventKey("Menu", KeyEvent.KEYCODE_MENU, FLAG_SMALLER_FONT);
case "scroll_lock": return keyeventKey("Scrl", KeyEvent.KEYCODE_SCROLL_LOCK, FLAG_SMALLER_FONT);
/* Spaces */ /* Spaces */
case "\\t": return charKey("\\t", '\t', 0); // Send the tab character case "\\t": return charKey("\\t", '\t', 0); // Send the tab character

View File

@ -72,6 +72,7 @@ public class ExtraKeysPreference extends PreferenceCategory
"f11_placeholder", "f11_placeholder",
"f12_placeholder", "f12_placeholder",
"menu", "menu",
"scroll_lock",
"combining_dot_above", "combining_dot_above",
"combining_double_aigu", "combining_double_aigu",
"combining_slash", "combining_slash",