Lazarus

Programming => Widgetset => Cocoa => Topic started by: allanm on June 11, 2018, 09:31:08 am

Title: Command+ Z not working in Cocoa
Post by: allanm on June 11, 2018, 09:31:08 am
I have an edit menu with Undo and Redo commands, and have assigned the standard keyboard shortcuts (Command+Z  and Shift+Command+Z) but the menu does not respond to these key-presses.

It works with Command(Meta)+A etc, or Shift+Z etc, but just not with Command+Z and Shift+Command+Z.

I also do not seem to be able to receive an OnKeyDown messages with those key presses either.

I have attached a sample program which has 3 menu items with Command+Z, Command+A and Shift+Z shortcuts.
This works in Carbon, but not Cocoa.

Any ideas??

Title: Re: Command+ Z not working in Cocoa
Post by: ChrisR on June 12, 2018, 03:13:56 pm
Reported 2018-05-20 as Issue 33632
  https://bugs.freepascal.org/view.php?id=33632
TinyPortal © 2005-2018