From 0fb492708fc160fc694e83bb934de3319e74a50b Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 14 Feb 2012 19:07:59 +1100 Subject: Simplify key handling code that has not needed to process different cases for 5 years. --- gtk/ScintillaGTK.cxx | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) (limited to 'gtk') 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) { -- cgit v1.2.3