HBu

Hi,

cmd-y does undo and cmd-z does redo under MacOSX using a german keyboard. The y-key and the z-key work as expected when pressed without pressing cmd simultaneously.

Best,
Holger
HBu
  • Сообщения: 5

Nate

I have an NSEvent and I use the keyCode. This is a hardware specific scan code for the physical location of the key. For OS X I don't see any sane way to convert this scan code into a virtual key code, which is the meaning of the scan code given the users keyboard layout (QWERTY, AZERTY, etc). Eg, Windows has MapVirtualKey to convert a scan code to a virtual key code. I can't find a way to do it in OS X, so unfortunately I can't fix it there.
Аватара пользователя
Nate

Nate
  • Сообщения: 9288

Nate

Actually I was wrong, I misread the docs for keyCode. keyCode is already the device independent code, not a scan code. GLFW is converting the keyCode to a psuedo scan code, which I disagree with as being the right thing to do. You can see the discussion here:
https://github.com/glfw/glfw/issues/114 ... t-23227736
Аватара пользователя
Nate

Nate
  • Сообщения: 9288


Вернуться в Bugs