aboutsummaryrefslogtreecommitdiffhomepage
path: root/cocoa/ScintillaCocoa.h
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2021-05-09 16:39:30 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2021-05-09 16:39:30 +1000
commit843ce05440fcd4ba7d19f8b612ab526c88296ad0 (patch)
tree964c741219c81d990ea9336c66a6803f16bf4a6b /cocoa/ScintillaCocoa.h
parent8827755d994e9ebb49097da51a4e460c56385774 (diff)
downloadscintilla-mirror-843ce05440fcd4ba7d19f8b612ab526c88296ad0.tar.gz
Change first responder / active handling so only treating as focussed when
both active and first responder. This has no visual effect yet but allows greying the selection when not focussed.
Diffstat (limited to 'cocoa/ScintillaCocoa.h')
-rw-r--r--cocoa/ScintillaCocoa.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cocoa/ScintillaCocoa.h b/cocoa/ScintillaCocoa.h
index 841ba8f13..d07ffe758 100644
--- a/cocoa/ScintillaCocoa.h
+++ b/cocoa/ScintillaCocoa.h
@@ -97,6 +97,8 @@ private:
intptr_t notifyObj;
bool capturedMouse;
+ bool isFirstResponder;
+ bool isActive;
bool enteredSetScrollingSize;
@@ -242,7 +244,9 @@ public:
NSMenu *CreateContextMenu(NSEvent *event);
void HandleCommand(NSInteger command);
- void ActiveStateChanged(bool isActive);
+ void SetFirstResponder(bool isFirstResponder_);
+ void ActiveStateChanged(bool isActive_);
+ void SetFocusActiveState();
void WindowWillMove();
// Find indicator