This repository was archived by the owner on Sep 11, 2025. It is now read-only.
Commit 14cba49
committed
chore: improve keybind handling and debugging output
1. Add #[allow(dead_code)] attribute for ButtonConfig.label field to
suppress warnings
2. Add detailed debug printing of loaded keybind configurations
3. Implement proper Unicode character handling for keybind matching
4. Add fallback to key name matching for non-character keys
5. Include additional context in trigger debug logs
chore: 改进按键绑定处理和调试输出
1. 为 ButtonConfig.label 字段添加 #[allow(dead_code)] 属性以抑制警告
2. 添加对加载的按键绑定配置的详细调试打印
3. 实现正确的 Unicode 字符处理用于按键绑定匹配
4. 对非字符键添加键名匹配的回退机制
5. 在触发日志中包含更多上下文信息1 parent 7a364e6 commit 14cba49
2 files changed
+31
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
56 | 66 | | |
57 | 67 | | |
58 | 68 | | |
| |||
101 | 111 | | |
102 | 112 | | |
103 | 113 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
110 | 134 | | |
111 | 135 | | |
112 | 136 | | |
| |||
0 commit comments