aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-02-02 21:59:02 +1100
committernyamatongwe <devnull@localhost>2011-02-02 21:59:02 +1100
commit00e49b085ffd982a394057feee62d271798555d0 (patch)
tree22f35e63d2b895eddf0291f68ec04b591e811a6c
parent08d4b480e016ad91c286bb81d21feb888bb67cd2 (diff)
downloadscintilla-mirror-00e49b085ffd982a394057feee62d271798555d0.tar.gz
Made work on Carbon bymaking a simple form of ClearSelection
that fits in command table.
-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);