improvement(shortcuts): Support more keyboard shortcuts #1742
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
用"白名单"的方式允许设置更多快捷键,统一了按键提示的形式,避免了原来用户录入快捷键时可能出现的bug
用户使用非直接输入的输入法时,按住Shift加其他按键不会按预期录入,会有无法录入的情况
特定按键组合可以产生一个bug:使用英文输入法,
Shift
+=
会录入Shift
++
,代码内以+
分割,这会产生错误现在统一了按键提示形式,双符号键统一按下档符号显示。例如美式键盘下,原来按下
Shift
+2
,会以Shift
+@
的文本提示,现在会以Shift
+2
的文本提示现在的按键白名单没有
Esc