diff options
author | nyamatongwe <unknown> | 2012-02-14 19:07:59 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2012-02-14 19:07:59 +1100 |
commit | 0fb492708fc160fc694e83bb934de3319e74a50b (patch) | |
tree | a58b55313f9b4e551c7dc6aa0e8c9c9e27f96df9 /gtk | |
parent | 50eb6cb9aff0a00330f694a551d149b9ebede33d (diff) | |
download | scintilla-mirror-0fb492708fc160fc694e83bb934de3319e74a50b.tar.gz |
Simplify key handling code that has not needed to process different cases for
5 years.
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/ScintillaGTK.cxx | 18 |
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) { |