diff options
| author | nyamatongwe <unknown> | 2003-09-01 11:20:33 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2003-09-01 11:20:33 +0000 | 
| commit | cd59973092b481dcbf17244ef582bee2bd59f501 (patch) | |
| tree | 80b06109f996cbbdcb48a10ea16abddc86e47a80 | |
| parent | f35883ab4d00fab80f9a71bc3895bfd52ccc234f (diff) | |
| download | scintilla-mirror-cd59973092b481dcbf17244ef582bee2bd59f501.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; | 
