aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--macosx/ScintillaMacOSX.cxx2
-rw-r--r--macosx/ScintillaMacOSX.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/macosx/ScintillaMacOSX.cxx b/macosx/ScintillaMacOSX.cxx
index ea541890b..d1bee757f 100644
--- a/macosx/ScintillaMacOSX.cxx
+++ b/macosx/ScintillaMacOSX.cxx
@@ -1387,7 +1387,7 @@ pascal OSStatus ScintillaMacOSX::CommandEventHandler( EventHandlerCallRef /*inCa
{ kHICommandCut, &ScintillaMacOSX::Cut },
{ kHICommandUndo, &ScintillaMacOSX::Undo },
{ kHICommandRedo, &ScintillaMacOSX::Redo },
- { kHICommandClear, &ScintillaMacOSX::ClearSelection },
+ { kHICommandClear, &ScintillaMacOSX::ClearSelectionSimple },
{ kHICommandSelectAll, &ScintillaMacOSX::SelectAll },
};
const StupidMap<UInt32, bool (ScintillaMacOSX::*)()> canProcessCommands[] = {
diff --git a/macosx/ScintillaMacOSX.h b/macosx/ScintillaMacOSX.h
index 78dffe87f..df3e1c8e1 100644
--- a/macosx/ScintillaMacOSX.h
+++ b/macosx/ScintillaMacOSX.h
@@ -193,6 +193,9 @@ public: // Public for scintilla_send_message
virtual void CreateCallTipWindow(PRectangle rc);
virtual void AddToPopUp(const char *label, int cmd = 0, bool enabled = true);
virtual void ClaimSelection();
+ void ClearSelectionSimple() {
+ ClearSelection();
+ }
static sptr_t DirectFunction(ScintillaMacOSX *sciThis,
unsigned int iMessage, uptr_t wParam, sptr_t lParam);