mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +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:
@@ -485,7 +485,7 @@ bool CGarrisonSlot::handleSplittingShortcuts()
|
||||
{
|
||||
const bool isAlt = GH.isKeyboardAltDown();
|
||||
const bool isLShift = GH.isKeyboardShiftDown();
|
||||
const bool isLCtrl = GH.isKeyboardCtrlDown();
|
||||
const bool isLCtrl = GH.isKeyboardCmdDown();
|
||||
|
||||
if(!isAlt && !isLShift && !isLCtrl)
|
||||
return false; // This is only case when return false
|
||||
|
||||
Reference in New Issue
Block a user