From d3270db6dccafd1e1c6b186d13cad9ee56ebcb50 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 6 Jun 2014 23:46:47 -0400 Subject: [PATCH] Added note that Areas get focus on Mac OS X on a click event automatically since we make it a first responder. --- area_darwin.go | 1 + todo.md | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/area_darwin.go b/area_darwin.go index 216d417..0428432 100644 --- a/area_darwin.go +++ b/area_darwin.go @@ -124,6 +124,7 @@ func areaView_mouseMoved_mouseDragged(self C.id, e C.id) { //export areaView_mouseDown func areaView_mouseDown(self C.id, e C.id) { + // no need to manually set focus; Mac OS X has already done that for us by this point areaMouseEvent(self, e, true, false) } diff --git a/todo.md b/todo.md index acf73fb..4b6649b 100644 --- a/todo.md +++ b/todo.md @@ -3,7 +3,6 @@ MAC OS X: - asked: http://stackoverflow.com/questions/23046414/cocoa-how-do-i-get-nscombobox-indexofselecteditem-to-return-1-if-the-user-m - 10.6 also spits a bunch of NSNoAutoreleasePool() debug log messages even though I thoguht I had everything in an NSAutoreleasePool... - key up with the Command key held and our new modifiers code doesn't seem to happen? -- point out that Areas get keyboard focus automatically on click on Mac OS X - make sure Areas get keyboard focus when clicking outside the actual Area space on Mac OS X WINDOWS: