Skip to content

Commit 56ae3d9

Browse files
committed
Add missing XK ISO Level 3 shift non unicode char in x11key map
* The most appropriate description here: https://unix.stackexchange.com/a/55154/440266 * Right Alt ~ AltGr ~ ISO level 3 shift (but just for back compatibility) * in new sense the SwitchMode is replaced by XK_ISO_Group_Shift and aliases in some languages (keyboard layouts)
1 parent ec7f029 commit 56ae3d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shiny/driver/internal/x11key/x11key.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,8 @@ func KeyModifiers(state uint16) (m key.Modifiers) {
104104

105105
// These constants come from /usr/include/X11/{keysymdef,XF86keysym}.h
106106
const (
107+
xkISOLevel3Shift = 0xfe03
108+
107109
xkISOLeftTab = 0xfe20
108110
xkBackSpace = 0xff08
109111
xkTab = 0xff09
@@ -183,6 +185,8 @@ const (
183185
// that do not correspond to a Unicode code point, such as "Page Up", "F1" or
184186
// "Left Shift", to key.Code values.
185187
var nonUnicodeKeycodes = map[rune]key.Code{
188+
xkISOLevel3Shift: key.CodeRightAlt,
189+
186190
xkISOLeftTab: key.CodeTab,
187191
xkBackSpace: key.CodeDeleteBackspace,
188192
xkTab: key.CodeTab,

0 commit comments

Comments
 (0)