fix: key repeat regression for windows caused by #9217
This commit is contained in:
parent
c1b5e125b0
commit
a01a6b0b89
1 changed files with 6 additions and 1 deletions
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
#include "deskflow/KeyMap.h"
|
#include "deskflow/KeyMap.h"
|
||||||
#include "base/Log.h"
|
#include "base/Log.h"
|
||||||
|
#include "common/PlatformInfo.h"
|
||||||
#include "deskflow/KeyTypes.h"
|
#include "deskflow/KeyTypes.h"
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
|
@ -945,7 +946,11 @@ void KeyMap::addKeystrokes(
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kKeystrokeRepeat:
|
case kKeystrokeRepeat:
|
||||||
// no changes on key repeat
|
if (deskflow::platform::isWindows()) {
|
||||||
|
// Windows repeat needs this
|
||||||
|
keystrokes.push_back(Keystroke(button, false, true, data));
|
||||||
|
keystrokes.push_back(Keystroke(button, true, true, data));
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case kKeystrokeClick:
|
case kKeystrokeClick:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue