View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0033632||Lazarus||IDE||public||2018-04-22 20:01||2018-07-13 20:51|
|Reporter||David Gray||Assigned To||Dmitry Boyarintsev|
|Platform||Mac||OS||High Sierra||OS Version||10.13.4|
|Product Version||1.9 (SVN)||Product Build||57264|
|Target Version||Fixed in Version|
|Summary||0033632: Cocoa: Cmd+Z shortcut (undo) doesn't work in the IDE or an application|
|Description||Undo and redo don't work in the IDE. Specifically, shortcuts involving the cmd+Z (meta Z) key combinations don't seem to reach either the IDE or an app.|
|Steps To Reproduce||Type a character into the IDE source editor. Press cmd+Z. Nothing happens. But, select the Edit/Undo IDE main menu and the typed character is correctly removed.|
The "redo" shortcut cmd+shift+Z similarly fails.
Or, create a new application and add a main menu. Create a menu item, give it a shortcut of meta Z, create an event handler. The event handler is never called via the shortcut, only via the menu item.
Cmd with other keys does work. For example cmd+Y shortcut works fine.
When fixing, please check that cmd+shift+Z also works, for the "redo" function.
|Tags||No tags attached.|
|Fixed in Revision||58456|
||If TForm.KeyPreview is enabled, no KeyDown or KeyUp event is fired when cmd+Z is pressed. So no workaround is possible.|
||I have the same problem with cmd+left, cmd+shift+left, cmd+right, cmd+shift+right, cmd+up, cmd+down (I disabled the system-wide shortcuts). The shortcuts work in Carbon IDE but not in Cocoa IDE.|
||As a reporter, I do not have permission to add a relationship, but this is a duplicate of or related to 0033171.|
||It works on Carbon, not sure why but it doesn't work on Cocoa.|
||please test and close if ok|
Dmitry, when I try to build to trunk using fpcupdeluxe, I get warnings about pseudoterminat, and this error:
lazarus/debugger/pseudoterminaldlg.pp(207, 50) identifier ident no member "DevicePtyMaster"
As well as
lazarus/debugger/pseudoterminaldlg.pp(207, 65) Syntax Error, ";" expected but "]" found
And fails to build.
||pseudoterminaldlg: fixed last night|
||Martin, still getting the ident no member error.|
I was just able to build with Trunk, but now I'm getting an Arithmetic Overflow error when starting Lazarus, and I can't get past it.
If I choose Abort, of course the whole thing closes.
If I choose Ok, the error goes away but it doesn't finish loading.
There is a window with title "MainIDE", if I try to resize it I get the arithmetic error again.
||And now success. I had to rebuild again using lazbuild, and now command+z works.|
||Big thanks everyone!|
|2018-04-22 20:01||David Gray||New Issue|
|2018-04-22 20:06||David Gray||Note Added: 0107935|
|2018-05-16 00:10||Ondrej Pokorny||Note Added: 0108323|
|2018-05-19 14:27||Chris Rorden||Note Added: 0108425|
|2018-05-20 11:04||Ondrej Pokorny||Relationship added||related to 0033171|
|2018-06-19 00:10||Marcus Fernstrom||Note Added: 0108960|
|2018-07-07 08:59||Dmitry Boyarintsev||Fixed in Revision||=> 58456|
|2018-07-07 08:59||Dmitry Boyarintsev||LazTarget||=> -|
|2018-07-07 08:59||Dmitry Boyarintsev||Note Added: 0109256|
|2018-07-07 08:59||Dmitry Boyarintsev||Status||new => resolved|
|2018-07-07 08:59||Dmitry Boyarintsev||Resolution||open => fixed|
|2018-07-07 08:59||Dmitry Boyarintsev||Assigned To||=> Dmitry Boyarintsev|
|2018-07-10 21:56||Marcus Fernstrom||Note Added: 0109352|
|2018-07-11 11:19||Martin Friebe||Note Added: 0109356|
|2018-07-11 15:37||Marcus Fernstrom||Note Added: 0109360|
|2018-07-11 17:28||Marcus Fernstrom||Note Added: 0109362|
|2018-07-11 17:46||Marcus Fernstrom||Note Added: 0109365|
|2018-07-11 17:49||Marcus Fernstrom||Note Added: 0109366|