mirror of
https://github.com/edubart/otclient.git
synced 2025-04-29 17:19:20 +02:00
Map option to alt and command to meta keys on macOS (#1158)
This commit is contained in:
parent
89dc0f87eb
commit
f173b03dbd
@ -88,6 +88,11 @@ X11Window::X11Window()
|
||||
m_keyMap[XK_Meta_R] = Fw::KeyMeta;
|
||||
m_keyMap[XK_Menu] = Fw::KeyMenu;
|
||||
|
||||
#if defined(__APPLE__)
|
||||
m_keyMap[65406] = Fw::KeyAlt;// Option
|
||||
m_keyMap[65511] = Fw::KeyMeta;// Command
|
||||
#endif
|
||||
|
||||
// ascii characters
|
||||
m_keyMap[XK_space] = Fw::KeySpace;
|
||||
m_keyMap[XK_exclam] = Fw::KeyExclamation;
|
||||
|
Loading…
x
Reference in New Issue
Block a user