* * *

Author Topic: Command+ Z not working in Cocoa  (Read 870 times)

allanm

  • New member
  • *
  • Posts: 8
Command+ Z not working in Cocoa
« 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??


ChrisR

  • Jr. Member
  • **
  • Posts: 67
Re: Command+ Z not working in Cocoa
« Reply #1 on: June 12, 2018, 03:13:56 pm »
Reported 2018-05-20 as Issue 33632
  https://bugs.freepascal.org/view.php?id=33632

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus