Commit 4c11f38
committed
fix: improve OSD panel timeout behavior with modifier key
1. Changed timer connection from hideOsd to doneSetting to handle
modifier key detection
2. Added doneSetting method that checks for MetaModifier key state
3. When Meta key is pressed, restarts timer instead of hiding OSD
immediately
4. Creates additional hide timer when Meta key is not pressed to ensure
proper timeout after key release
5. This prevents OSD from disappearing while user is holding modifier
keys for shortcuts
fix: 改进 OSD 面板超时行为以支持修饰键
1. 将定时器连接从 hideOsd 改为 doneSetting 以处理修饰键检测
2. 添加 doneSetting 方法检查 MetaModifier 键状态
3. 当 Meta 键按下时,重新启动定时器而不是立即隐藏 OSD
4. 当 Meta 键未按下时,创建额外的隐藏定时器确保按键释放后正确超时
5. 防止用户在按住修饰键进行快捷操作时 OSD 意外消失
PMS: BUG-294169 BUG-2941651 parent f7a8f50 commit 4c11f38
2 files changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
77 | 91 | | |
78 | 92 | | |
79 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
0 commit comments