Commit c4c638c
committed
fix: sync customize keymap when reverting invalid shortcut
When a shortcut is set to an invalid key (e.g. Ctrl+Shift+L), the revert
uses the visible option's current value and syncs it to the hidden
customize keymap, preventing stale data from overwriting on keymap switch.
修复快捷键设为无效组合键后恢复值不正确的问题,同步更新customize
keymap避免后续keymap切换时用脏数据覆盖。
Log: 修复无效快捷键恢复时使用了旧值的问题
PMS: BUG-353289
Influence: 用户设置无效快捷键后,快捷键将正确恢复为当前有效值而非之前的自定义值。1 parent 29f76ff commit c4c638c
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
374 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
375 | 378 | | |
376 | 379 | | |
377 | 380 | | |
| |||
0 commit comments