masterplan icon indicating copy to clipboard operation
masterplan copied to clipboard

Incorrect keyboard shortcuts on MacOS

Open ejektaflex opened this issue 5 years ago • 4 comments
trafficstars

On MacOS, Cut/Copy/Paste all use CTRL+X/C/V, instead of CMD+X/C/V when operating on text. It would be nice to use the native clipboard for these operations when possible :^)

ejektaflex avatar Aug 20 '20 18:08 ejektaflex

Hello! Sorry for the late reply!

I modified the shortcuts to allow using either Control or the Command (Super) key for Mac awhile ago, but unfortunately, it looks like Raylib isn't picking up on the super key anymore (at least in my tests). I'll keep an eye out for a solution, but for now, Control works.

SolarLune avatar Aug 27 '20 17:08 SolarLune

Pinging @raysan5 just for a confirmation that the super keys do indeed work with the IsKeyDown() function in mainline raylib on his machine.

SolarLune avatar Aug 27 '20 17:08 SolarLune

@SolarLune actually, I'm not sure... GLFW most probably support them but maybe they are not mapped in raylib...

raysan5 avatar Aug 27 '20 20:08 raysan5

Hmm, someone on Discord tested for me and said it was working for them in Windows. Not quite sure what to make of it, but I'm using raylib-go, which isn't as up-to-date as master, so that might be it. I'll have to investigate it some more later, I think.

SolarLune avatar Aug 28 '20 02:08 SolarLune