fix: macOS key repeat not working
This commit is contained in:
parent
3598eb6a47
commit
b8e0415632
1 changed files with 2 additions and 1 deletions
|
|
@ -947,9 +947,10 @@ void KeyMap::addKeystrokes(
|
||||||
|
|
||||||
case kKeystrokeRepeat:
|
case kKeystrokeRepeat:
|
||||||
if (deskflow::platform::isWindows()) {
|
if (deskflow::platform::isWindows()) {
|
||||||
// Windows repeat needs this
|
|
||||||
keystrokes.push_back(Keystroke(button, false, true, data));
|
keystrokes.push_back(Keystroke(button, false, true, data));
|
||||||
keystrokes.push_back(Keystroke(button, true, true, data));
|
keystrokes.push_back(Keystroke(button, true, true, data));
|
||||||
|
} else if (deskflow::platform::isMac()) {
|
||||||
|
keystrokes.push_back(Keystroke(button, true, true, data));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue