diff options
author | nyamatongwe <devnull@localhost> | 2003-09-01 11:20:33 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-09-01 11:20:33 +0000 |
commit | 4de9b7287ef1cd4f2198823fbe7587c406767dfc (patch) | |
tree | 80b06109f996cbbdcb48a10ea16abddc86e47a80 | |
parent | 2d8c4fd3adcc80b8a6953ad0f997fec1a91a87ff (diff) | |
download | scintilla-mirror-4de9b7287ef1cd4f2198823fbe7587c406767dfc.tar.gz |
Patch from Nathan Holstein to avoid NUL characters entered for
FN+arrow keys.
-rw-r--r-- | gtk/ScintillaGTK.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 0a7709a67..0e2240aaa 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1663,6 +1663,10 @@ static int KeyTranslate(int keyIn) { gint ScintillaGTK::KeyThis(GdkEventKey *event) { //Platform::DebugPrintf("SC-key: %d %x [%s]\n", // event->keyval, event->state, (event->length > 0) ? event->string : "empty"); + if (!event->keyval) { + return true; + } + bool shift = (event->state & GDK_SHIFT_MASK) != 0; bool ctrl = (event->state & GDK_CONTROL_MASK) != 0; bool alt = (event->state & GDK_MOD1_MASK) != 0; |