We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed15adc commit 2d48324Copy full SHA for 2d48324
1 file changed
src/devices/keyboard/handler.go
@@ -12,14 +12,18 @@ import (
12
13
var KeyboardEnabled = new(devices.DeviceEnabled).Disable()
14
15
-func HandleKeyboard(d *webrtc.DataChannel) error {
+func HandleKeyboard(d *webrtc.DataChannel) {
16
17
if d.Label() != "keyboard" {
18
- return nil
+ return
19
}
20
21
d.OnOpen(func() {
22
+
23
+ robotgo.KeySleep = 100
24
25
log.Println("keyboard data channel is open")
26
27
})
28
29
keyState := make(map[string]bool)
@@ -76,6 +80,4 @@ func HandleKeyboard(d *webrtc.DataChannel) error {
76
80
77
81
78
82
79
-
83
0 commit comments