diff options
author | nyamatongwe <devnull@localhost> | 2011-07-19 11:39:55 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-07-19 11:39:55 +1000 |
commit | a2ec13fe577a76af4ce49639f93ce125597686f7 (patch) | |
tree | 92fa310ad4581bc513de8126606c1d097bd09ad4 | |
parent | 8ff31696f5cd5911c62bd5dde6d3ba4df05d496f (diff) | |
download | scintilla-mirror-a2ec13fe577a76af4ce49639f93ce125597686f7.tar.gz |
Patch from Mitchell to make Alt key handling work on OS X.
-rw-r--r-- | gtk/ScintillaGTK.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index bb1062d90..b7cea5ed3 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2209,7 +2209,7 @@ gboolean ScintillaGTK::KeyThis(GdkEventKey *event) { bool ctrl = (event->state & GDK_CONTROL_MASK) != 0; bool alt = (event->state & GDK_MOD1_MASK) != 0; guint key = event->keyval; - if (ctrl && (key < 128)) + if ((ctrl || alt) && (key < 128)) key = toupper(key); #if GTK_CHECK_VERSION(3,0,0) else if (!ctrl && (key >= GDK_KEY_KP_Multiply && key <= GDK_KEY_KP_9)) |