summaryrefslogtreecommitdiff
path: root/area_unix.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-03-23 17:26:11 -0400
committerPietro Gagliardi <[email protected]>2014-03-23 17:26:11 -0400
commit7acb3c527229d1ea48070398315663e946d5bceb (patch)
tree0b23366708cb0e92319c856185fa636e561528ab /area_unix.go
parentaee2b982707b1e3210b6335082d01d1f3e2fdc3b (diff)
Added GDK_KEY_Alt_L/R to the modifier key handling in GTK+ key events.
Diffstat (limited to 'area_unix.go')
-rw-r--r--area_unix.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/area_unix.go b/area_unix.go
index a990cc9..4e4788b 100644
--- a/area_unix.go
+++ b/area_unix.go
@@ -320,7 +320,9 @@ var modonlykeys = map[C.guint]Modifiers{
C.GDK_KEY_Control_R: Ctrl,
C.GDK_KEY_Meta_L: Alt,
C.GDK_KEY_Meta_R: Alt,
- // TODO GDK_KEY_Alt_L/R too?
+ // my system generats these two for the Alt keys instead of Meta
+ C.GDK_KEY_Alt_L: Alt,
+ C.GDK_KEY_Alt_R: Alt,
// C.GDK_KEY_Super_L: Super,
// C.GDK_KEY_Super_R: Super,
}