QB64-Phoenix-Edition / QB64pe

The QB64 Phoenix Edition Repository
https://qb64phoenix.com
Other
114 stars 23 forks source link

Cmd button in MacOS should be usable as Ctrl #505

Open vivid-pixel opened 1 week ago

vivid-pixel commented 1 week ago

A little quality of life improvement for the Mac users out there.

Describe the bug The typical Windows or Linux shortcuts for copying, cutting, pasting, or selecting all would be using the Ctrl key plus C, X, V, or A. On MacOS, this is typically done with the Cmd key, but that is not interpreted by QB64. This includes Cmd-S for saving, which pops up a dialog, "Unable to save current window contents."

It's a hard habit to break using Cmd on a Mac, so one ends up accidentally replacing code with a letter "c" or "x" and then having to remember it's Ctrl-Z to undo, rather than Cmd-Z.

To Reproduce Steps to reproduce the behavior:

  1. Open a file.
  2. Try to use copy and paste, or saving, with typical MacOS keys.

Expected behavior Cmd button should be usable as Ctrl on MacOS.

Computer:

a740g commented 1 week ago

Thank you for adding of this. I've been meaning to add this issue for a long time but kept forgetting.