make keyboard command delay 200ms

This commit is contained in:
True Zhuanjia committed 2024-08-24 23:46:04 +08:00
1 parent c6b27ad0e0
commit a028191c82
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -363,7 +363,7 @@ import UIKit
}
}
@objc public func sendKeyDownEventWithDelay(keyboardCmdStrings: [String], delay: TimeInterval = 0.05, index: Int = 0) {
@objc public func sendKeyDownEventWithDelay(keyboardCmdStrings: [String], delay: TimeInterval = 0.2, index: Int = 0) { // we need a large delay for WAN streaming
guard index < keyboardCmdStrings.count else {
for keyStr in keyboardCmdStrings {
LiSendKeyboardEvent(CommandManager.keyMappings[keyStr]!,Int8(KEY_ACTION_UP), 0)