rich2014
9f62dd37a3
Cocoa: Fix #22360 the issue of changing the focus control again during changing the focus control
2024-01-14 18:00:43 +08:00
rich2014
d2b6d5fe66
Cocoa: prevent HintWindow from becoming KeyWindow
2024-01-12 22:55:52 +08:00
rich2014
3bfa4b5a16
Cocoa: avoid sending unnecessary KillFocus/SentFocus messages and keep consistent with win32
2023-12-10 13:59:37 +08:00
rich2014
4746c886bd
Cocoa: Fix the issue that KillFocus message is sent to the wrong control when the control is a FieldEditor #40635
2023-12-10 13:37:27 +08:00
rich2014
0a9f5cb472
Cocoa/CrossRef: Remove useless unit references
2023-11-19 18:36:52 +08:00
rich2014
1adaff6dae
Cocoa/CrossRef: Remove unit cross-references between CocoaInt and CocoaWSCommon
2023-11-19 18:36:52 +08:00
rich2014
25c60331fd
Cocoa/CrossRef: remove unnecessary unit references
2023-11-19 18:36:51 +08:00
rich2014
ca23ffbbdf
Cocoa/CrossRef: Remove Cursor-related unit cross-references
2023-11-19 18:36:51 +08:00
rich2014
dd43ea568f
Cocoa/Form: make OnTopForm compatible with FullScreen
2023-11-18 02:31:38 +08:00
rich2014
95373db0f0
Cocoa/Form: adapt to selecting a window from Docker Icon/Show All Windows
2023-11-18 02:31:38 +08:00
rich2014
e60b72117e
Cocoa/Form: adapt WindowLevel to be adjusted by System
2023-11-18 02:31:38 +08:00
rich2014
408f836d14
Cocoa: TCocoaWidgetSet.GetWindowRelativePosition() removed
...
TWidgetSet.GetWindowRelativePosition() works fine
2023-10-28 19:29:51 +08:00
rich2014
e3a53a2a42
Cocoa: new utils for Multi Display applied
2023-10-28 19:26:56 +08:00
rich2014
0c99ef9d0d
Cocoa: simplify coordinate conversion related to Window
2023-10-21 09:52:35 +08:00
rich2014
998bfc4e21
Cocoa: TCocoaWindowContent.resolvePopupParent() removed
2023-10-19 23:38:15 +08:00
rich2014
afc2dae9d3
Cocoa/MultiDisplay: unused functions removed
2023-10-17 23:32:52 +08:00
rich2014
31316cc61c
Cocoa/MultiDisplay: NSGlobalScreenHeight() applied
2023-10-17 22:07:06 +08:00
rich2014
cf6abd4c13
Cocoa: optimize the response time of the Mouse Cursor on Window Active
2023-09-29 17:51:11 +08:00
rich2014
0bc6614d40
Cocoa: fix the issue that FirstResponder may be not set
...
for example, FirstResponder was not set in Form Designer before, MouseMove Event was lost.
2023-09-20 22:39:00 +08:00
rich2014
15c606729f
Cocoa: fix the issue when call TCocoaWindow.makeFirstResponder() with nil
2023-08-06 02:00:54 +08:00
rich2014
5d31c9aebb
Cocoa: fix ESC/ENTER with ModifierFlag handle in TCocoaWindowContent.performKeyEquivalent
2023-08-02 22:21:55 +08:00
rich2014
770e392d8e
Cocoa: Fix GetKeyState (eg. Command/Option/Shift) that the principle is similar to 53cd3db
...
completely eliminate keystroke issue caused by improper reading of modifier keys.
it's because in TCocoaWidgetSet.GetKeyState(), the modifier key should not be obtained in real time, but should be obtained from the current event.
for example, when pressing Command+R in the IDE, it was originally a shortcut key for Run, but sometimes the character R is entered inadvertently.
2023-07-30 23:14:39 +08:00
rich2014
705a74b957
Cocoa: improve Enter key on the numeric keypad handled in KeyDown(), avoid beep
2023-07-26 19:44:25 +08:00
rich2014
e5b2c70c00
Cocoa: fix typos
2023-07-18 19:05:39 +08:00
rich2014
890ae752ca
Cocoa: simplify the code related to Focus
2023-07-18 19:04:32 +08:00
rich2014
3542056197
Cocoa: fix the issue be introduced by b184a37
...
Window/Control Active Message Lost
2023-07-18 18:52:35 +08:00
rich2014
b184a37dbe
Cocoa: fix the issue that Modal Form may disappear when switching back from other apps
...
the issue fixed:
1. run your app, open Modal Form
2. switch to other apps
3. in the dock, right click your app ico and select "Show All Window", and select a window
4. the Modal Form is disappear (actually ordered behind the selected Form)
2023-07-16 23:00:29 +08:00
rich2014
185e72ea31
Cocoa: better handling of TCocoaWindow.makeFirstResponder() reentrancy
2023-07-14 21:05:41 +08:00
rich2014
cdbab01c2d
Cocoa: Cursor: Improve support for Window/Application switching
2023-06-10 23:05:36 +08:00
rich2014
bcb6d4d44e
Cocoa: Fix compliation error for 1475336
2023-06-06 01:00:27 +08:00
rich2014
f4acf204fb
FIX: COCOA: send KillFocus/SetFocus messages to LCL at the right time, adapt to LCL, just like Win32 (by TCocoaWindow.makeFirstResponder() issues with infinite loops fixed)
2023-05-03 13:11:30 +00:00
rich2014
467026508f
FIX: COCOA: improved key event handling mechanism by NSTextInputClientProtocol.hasMarkedText() in IME input state
2023-05-03 13:11:30 +00:00
Maxim Ganetsky
01d60e2dfd
Cocoa: memory leak fixes by David Jenkins, issue #40116
2023-02-27 23:44:23 +03:00
dmitry
796f05d611
cocoa: fix compilation for fpc 3.0.4
...
git-svn-id: trunk@63868 -
2020-09-05 19:12:43 +00:00
dmitry
babee456cf
cocoa: update handling of key event characters for non-latin based layouts
...
git-svn-id: trunk@63814 -
2020-08-23 02:22:13 +00:00
dmitry
e1d1474d82
cocoa: fix compilation for fpc320rc1 headers. bug #36864
...
git-svn-id: trunk@62885 -
2020-04-05 03:47:06 +00:00
dmitry
c2a64d06ea
cocoa: reverting r62568 #6758ea533d. the revision broke SPACE processing (to emulate click on buttons)
...
git-svn-id: trunk@62691 -
2020-03-05 04:10:34 +00:00
dmitry
6758ea533d
cocoa: suppressing beeps on windows for unknown key presses
...
git-svn-id: trunk@62568 -
2020-01-17 13:11:30 +00:00
dmitry
11fb196904
cocoa: forcing focusing of the content view, if window gets focused
...
git-svn-id: trunk@62481 -
2020-01-04 03:21:34 +00:00
dmitry
16d8971fa2
cocoa: using the primary display (index 0) as a base for screen coordinates. Patch by David Jenkins. bug #36049
...
git-svn-id: trunk@62437 -
2019-12-23 19:55:02 +00:00
dmitry
62146e35bf
cocoa: updating lclRelativePos function, based on the patch by David Jenkins. bug #36049
...
git-svn-id: trunk@62434 -
2019-12-23 17:12:40 +00:00
dmitry
53c619e833
cocoa: restoring the window style changes notification. patch by Zoë Peterson. bug #35622
...
git-svn-id: trunk@62060 -
2019-10-15 02:45:57 +00:00
dmitry
12152924e3
cocoa: splitting window content into content and document, to allow the support of scrollbars for the form. #33988
...
git-svn-id: trunk@61439 -
2019-06-21 15:42:10 +00:00
dmitry
44e350ffea
cocoa: part 3 of the keyboard handling patch by Zoë Peterson. #35538
...
git-svn-id: trunk@61422 -
2019-06-18 20:12:21 +00:00
dmitry
940fdd0370
cocoa: key event handling update, part 2 by Zoë Peterson. #35538
...
git-svn-id: trunk@61421 -
2019-06-18 20:06:33 +00:00
dmitry
5191d92a03
cocoa: change focus switch processing to after event handling. Previously it was on the focus switch which caused endless loops in some cases
...
git-svn-id: trunk@61392 -
2019-06-14 19:07:50 +00:00
dmitry
f65c6130f3
cocoa: not closing window explicitly, when processing view notifications. Fixes selection of bsNone style setting for a form
...
git-svn-id: trunk@61389 -
2019-06-14 15:55:07 +00:00
dmitry
2bbd782eec
cocoa: fix the compilation with fpc trunk. Patch by Alfred. #35690
...
git-svn-id: trunk@61350 -
2019-06-10 05:00:31 +00:00
dmitry
ea39d588f5
cocoa: removing LCL custom event LCLEventSubTypeMessage as unused
...
git-svn-id: trunk@61339 -
2019-06-07 15:24:30 +00:00
dmitry
fa41c05360
cocoa: invalidating designer overlay view together with content view. Due to forceful use of layers in macOS10.14. Adding a memo (or any scrolling control) would introduce extra layers causing visual issues. In this case overlay (as always staying on top - and receiving its own layer) must be explicitly refreshed, if window content if affected. #35165
...
git-svn-id: trunk@61319 -
2019-06-04 14:17:18 +00:00