Commit 2c55b3a
committed
fix: handle modifier key release events properly
1. Modified the modKeyReleasedCb function in shortcut_manager.go to
handle CapsLock and Super keys differently
2. For CapsLock key release, now emits a key event with the key code
instead of checking if keyboard is grabbed
3. For Super key release, now emits a key event without the previous
grab check
4. NumLock key release handling remains unchanged
5. This fixes an issue where certain modifier key releases were not
being properly processed
Log: Fixed modifier key release handling for improved keyboard shortcut
reliability
Influence:
1. Test CapsLock key functionality - verify it works correctly when
toggled
2. Test Super key (Windows/Command key) shortcuts - ensure they trigger
properly
3. Verify that keyboard shortcuts involving modifier keys work
consistently
4. Test keyboard grab state doesn't interfere with modifier key
processing
5. Check that NumLock key behavior remains unchanged
fix: 正确处理修饰键释放事件
1. 修改了 shortcut_manager.go 中的 modKeyReleasedCb 函数,以不同方式处理
CapsLock 和 Super 键
2. 对于 CapsLock 键释放,现在会发送带有键码的按键事件,而不是检查键盘是
否被占用
3. 对于 Super 键释放,现在会发送按键事件,不再进行之前的占用检查
4. NumLock 键释放处理保持不变
Log: 修复修饰键释放处理,提高键盘快捷键的可靠性
Influence:
1. 测试 CapsLock 键功能 - 验证切换时工作正常
2. 测试 Super 键(Windows/Command 键)快捷键 - 确保正确触发
3. 验证涉及修饰键的键盘快捷键工作一致
4. 测试键盘占用状态不会干扰修饰键处理
5. 检查 NumLock 键行为保持不变
PMS: BUG-3167551 parent 5ab3f5b commit 2c55b3a
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
| |||
0 commit comments