aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-04-09 12:30:31 +0000
committernyamatongwe <unknown>2000-04-09 12:30:31 +0000
commit76b5d9336bdf529d7d851149f938d84bd9e05361 (patch)
tree0210a06a2032887ac1cc4ef1fc8a3034c962c003
parent6d3d6369e79d216e20d2ef030548cf2482ac5e82 (diff)
downloadscintilla-mirror-76b5d9336bdf529d7d851149f938d84bd9e05361.tar.gz
Fixed key entry so characters between 128 and 255 can be entered.
-rw-r--r--gtk/ScintillaGTK.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index 919171cd2..77b308e1f 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -473,13 +473,13 @@ void ScintillaGTK::NotifyKey(int key, int modifiers) {
}
int ScintillaGTK::KeyDefault(int key, int modifiers) {
- if (!(modifiers & SCI_CTRL) && !(modifiers & SCI_ALT) && (key < 128)) {
+ if (!(modifiers & SCI_CTRL) && !(modifiers & SCI_ALT) && (key < 256)) {
AddChar(key);
} else {
// Pass up to container in case it is an accelerator
NotifyKey(key, modifiers);
}
- //Platform::DebugPrintf("SK-key: %d %x %x\n",event->keyval, event->state, GTK_WIDGET_FLAGS(widget));
+ //Platform::DebugPrintf("SK-key: %d %x %x\n",key, modifiers);
return 1;
}