aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-02-14 19:07:59 +1100
committernyamatongwe <devnull@localhost>2012-02-14 19:07:59 +1100
commit38b4ddef3be0a24cf3851ef6d8f721783960ab4a (patch)
treed77783cf0083cac1ace1126685bba9906b4e8226
parent491f1a2fc261590de0f32103eaddaa6542e03850 (diff)
downloadscintilla-mirror-38b4ddef3be0a24cf3851ef6d8f721783960ab4a.tar.gz
Simplify key handling code that has not needed to process different cases for
5 years.
-rw-r--r--gtk/ScintillaGTK.cxx18
1 files changed, 3 insertions, 15 deletions
diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx
index b7d3fd22a..960f17f79 100644
--- a/gtk/ScintillaGTK.cxx
+++ b/gtk/ScintillaGTK.cxx
@@ -1398,21 +1398,9 @@ std::string ScintillaGTK::CaseMapString(const std::string &s, int caseMapping) {
}
int ScintillaGTK::KeyDefault(int key, int modifiers) {
- if (!(modifiers & SCI_CTRL) && !(modifiers & SCI_ALT)) {
- if (key < 256) {
- NotifyKey(key, modifiers);
- return 0;
- } else {
- // Pass up to container in case it is an accelerator
- NotifyKey(key, modifiers);
- return 0;
- }
- } else {
- // Pass up to container in case it is an accelerator
- NotifyKey(key, modifiers);
- return 0;
- }
- //Platform::DebugPrintf("SK-key: %d %x %x\n",key, modifiers);
+ // Pass up to container in case it is an accelerator
+ NotifyKey(key, modifiers);
+ return 0;
}
void ScintillaGTK::CopyToClipboard(const SelectionText &selectedText) {