Skip to content

Commit

Permalink
Add "scroll_lock" key (#800)
Browse files Browse the repository at this point in the history
Added "scroll_lock" equates to KeyEvent.KEYCODE_SCROLL_LOCK
  • Loading branch information
DocJr90 authored Nov 11, 2024
1 parent 70365b4 commit fcbaa23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/Possible-key-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ These keys are sent to apps, which are free to ignore them. The keyboard does no
`page_up`, `page_down`,
`home`, `end`,
`backspace`, `delete`,
`insert`, `f1`-`f12`,
`insert`, `scroll_lock`,
`f1`-`f12`,
`tab`, `copy`,
`paste`, `cut`,
`selectAll`, `pasteAsPlainText`,
Expand Down
1 change: 1 addition & 0 deletions srcs/juloo.keyboard2/KeyValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ public static KeyValue getKeyByName(String name)
case "f12": return keyeventKey("F12", KeyEvent.KEYCODE_F12, 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 "scroll_lock": return keyeventKey("Scrl", KeyEvent.KEYCODE_SCROLL_LOCK, FLAG_SMALLER_FONT);

/* Spaces */
case "\\t": return charKey("\\t", '\t', 0); // Send the tab character
Expand Down
1 change: 1 addition & 0 deletions srcs/juloo.keyboard2/prefs/ExtraKeysPreference.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public class ExtraKeysPreference extends PreferenceCategory
"f11_placeholder",
"f12_placeholder",
"menu",
"scroll_lock",
"combining_dot_above",
"combining_double_aigu",
"combining_slash",
Expand Down

0 comments on commit fcbaa23

Please sign in to comment.