Form loses Focus on Show Hint (hover over control that has ShowHint enabled)
Original Reporter info from Mantis: Hansaplast
-
Reporter name: Hans Luijten
Original Reporter info from Mantis: Hansaplast
- Reporter name: Hans Luijten
Description:
When using hints with controls that support this; showing the hint will have the form lose focus.
Focus is returned to the Form when the hint disappears again.
This is unexpected behavior and quite annoying (no offense intended).
- Hints do not work like that under Windows/Linux,
- This is not compliant with the usual macOS tooltip behavior
(see also Apple's UI Tooltip guidelines - https://developer.apple.com/design/human-interface-guidelines/macos/user-interaction/help/).
Steps to reproduce:
Create a new application, place a button on it (this happens with all visual controls).
Enter some text for Button.Hint.
Set Button.ShowHint to true.
Run application.
Hover over button.
You'll see that the form loses focus (eg. the entire form and its controls become "inactive" - watch the default button and the system icons on the form).
Additional information:
Lazarus 2.1.0 r62489M FPC 3.3.1 x86_64-darwin-cocoa (beta)
Noticed this in r62473 as well.
Mantis conversion info:
- Mantis ID: 36516
- OS: macOS
- OS Build: 10.15.2
- Build: r62489M
- Platform: Cocoa macOS
- Version: 2.0.7 (SVN)
- Fixed in revision: 62490 (#5301fa49)