File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -709,6 +709,16 @@ func (d *Device) RunMacro(no uint8) error {
709
709
k .Keyboard .Down (keycodes .KeyLeftShift )
710
710
k .Keyboard .Press (kc ^ keycodes .ShiftMask )
711
711
k .Keyboard .Up (keycodes .KeyLeftShift )
712
+ case keycodes .TypeNormal | keycodes .AltGrMask :
713
+ k .Keyboard .Down (keycodes .KeyRightAlt )
714
+ k .Keyboard .Press (kc ^ keycodes .AltGrMask )
715
+ k .Keyboard .Up (keycodes .KeyRightAlt )
716
+ case keycodes .TypeNormal | keycodes .AltGrMask | keycodes .ShiftMask :
717
+ k .Keyboard .Down (keycodes .KeyRightAlt )
718
+ k .Keyboard .Down (keycodes .KeyLeftShift )
719
+ k .Keyboard .Press (kc ^ keycodes .AltGrMask ^ keycodes .ShiftMask )
720
+ k .Keyboard .Up (keycodes .KeyRightAlt )
721
+ k .Keyboard .Up (keycodes .KeyLeftShift )
712
722
default :
713
723
//skip
714
724
}
Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ const (
135
135
KeyWindows = keycodes .TypeNormal | 0xE3
136
136
KeyRightCtrl = keycodes .TypeNormal | 0xE4
137
137
KeyRightShift = keycodes .TypeNormal | 0xE5
138
+ KeyRightAlt = keycodes .TypeNormal | 0xE6
138
139
)
139
140
140
141
const (
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ const (
47
47
KeyWindows = TypeNormal | 0xE3
48
48
KeyRightCtrl = TypeNormal | 0xE4
49
49
KeyRightShift = TypeNormal | 0xE5
50
+ KeyRightAlt = TypeNormal | 0xE6
50
51
51
52
KeyH = TypeNormal | 0x0B
52
53
KeyBackspace = TypeNormal | 0x2A
@@ -95,6 +96,7 @@ const (
95
96
// from machine/usb/hid/keyboard
96
97
const (
97
98
ShiftMask = 0x0400
99
+ AltGrMask = 0x0800
98
100
)
99
101
100
102
const (
You can’t perform that action at this time.
0 commit comments