mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
Better handling of Ctrl / Cmd modifier keys on Apple systems:
- Test only for Cmd modifier key when processing mouse clicks - Test both Ctrl and Cmd modifier key when processing keyboard input - This logic is now used for all Apple systems - macOS and iOS
This commit is contained in:
@@ -300,6 +300,11 @@ void InputHandler::fetchEvents()
|
||||
}
|
||||
}
|
||||
|
||||
bool InputHandler::isKeyboardCmdDown() const
|
||||
{
|
||||
return keyboardHandler->isKeyboardCmdDown();
|
||||
}
|
||||
|
||||
bool InputHandler::isKeyboardCtrlDown() const
|
||||
{
|
||||
return keyboardHandler->isKeyboardCtrlDown();
|
||||
|
||||
Reference in New Issue
Block a user