Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
掘金者说
vscode
提交
bbbe404c
V
vscode
项目概览
掘金者说
/
vscode
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vscode
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bbbe404c
编写于
3月 16, 2017
作者:
A
Alex Dima
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Avoid missing out on some modifier combinations
上级
32de5ac1
变更
4
展开全部
隐藏空白更改
内联
并排
Showing
4 changed file
with
97 addition
and
82 deletion
+97
-82
src/vs/workbench/services/keybinding/common/keyboardMapper.ts
...vs/workbench/services/keybinding/common/keyboardMapper.ts
+18
-3
src/vs/workbench/services/keybinding/test/linux_de_ch.txt
src/vs/workbench/services/keybinding/test/linux_de_ch.txt
+3
-3
src/vs/workbench/services/keybinding/test/linux_en_us.txt
src/vs/workbench/services/keybinding/test/linux_en_us.txt
+74
-74
src/vs/workbench/services/keybinding/test/mac_de_ch.txt
src/vs/workbench/services/keybinding/test/mac_de_ch.txt
+2
-2
未找到文件。
src/vs/workbench/services/keybinding/common/keyboardMapper.ts
浏览文件 @
bbbe404c
...
...
@@ -197,17 +197,32 @@ export class KeyboardMapper {
// Handle all `withShiftAltGr` entries
for
(
let
i
=
mappings
.
length
-
1
;
i
>=
0
;
i
--
)
{
const
mapping
=
mappings
[
i
];
this
.
_registerCharCode
(
mapping
.
code
,
true
,
true
,
true
,
mapping
.
withShiftAltGr
);
const
withShiftAltGr
=
mapping
.
withShiftAltGr
;
if
(
withShiftAltGr
===
mapping
.
withAltGr
||
withShiftAltGr
===
mapping
.
withShift
||
withShiftAltGr
===
mapping
.
value
)
{
// handled below
continue
;
}
this
.
_registerCharCode
(
mapping
.
code
,
true
,
true
,
true
,
withShiftAltGr
);
}
// Handle all `withAltGr` entries
for
(
let
i
=
mappings
.
length
-
1
;
i
>=
0
;
i
--
)
{
const
mapping
=
mappings
[
i
];
this
.
_registerCharCode
(
mapping
.
code
,
true
,
false
,
true
,
mapping
.
withAltGr
);
const
withAltGr
=
mapping
.
withAltGr
;
if
(
withAltGr
===
mapping
.
withShift
||
withAltGr
===
mapping
.
value
)
{
// handled below
continue
;
}
this
.
_registerCharCode
(
mapping
.
code
,
true
,
false
,
true
,
withAltGr
);
}
// Handle all `withShift` entries
for
(
let
i
=
mappings
.
length
-
1
;
i
>=
0
;
i
--
)
{
const
mapping
=
mappings
[
i
];
this
.
_registerCharCode
(
mapping
.
code
,
false
,
true
,
false
,
mapping
.
withShift
);
const
withShift
=
mapping
.
withShift
;
if
(
withShift
===
mapping
.
value
)
{
// handled below
continue
;
}
this
.
_registerCharCode
(
mapping
.
code
,
false
,
true
,
false
,
withShift
);
}
// Handle all `value` entries
for
(
let
i
=
mappings
.
length
-
1
;
i
>=
0
;
i
--
)
{
...
...
src/vs/workbench/services/keybinding/test/linux_de_ch.txt
浏览文件 @
bbbe404c
...
...
@@ -40,7 +40,7 @@
| Alt+KeyE | e | Alt+E | Alt+E |
| Ctrl+Alt+KeyE | € | Ctrl+Alt+E | Ctrl+Alt+E |
| Shift+Alt+KeyE | E | Shift+Alt+E | Shift+Alt+E |
| Ctrl+Shift+Alt+KeyE | E |
Shif
t+E | Ctrl+Shift+Alt+E |
| Ctrl+Shift+Alt+KeyE | E |
Ctrl+Shift+Al
t+E | Ctrl+Shift+Alt+E |
--------------------------------------------------------------------------------------------------
| HW Code combination | Key | KeyCode combination | UI label |
--------------------------------------------------------------------------------------------------
...
...
@@ -116,9 +116,9 @@
| Shift+KeyN | N | Shift+N | Shift+N |
| Ctrl+Shift+KeyN | N | Ctrl+Shift+N | Ctrl+Shift+N |
| Alt+KeyN | n | Alt+N | Alt+N |
| Ctrl+Alt+KeyN | n |
N | Ctrl+Alt+N |
| Ctrl+Alt+KeyN | n |
Ctrl+Alt+
N | Ctrl+Alt+N |
| Shift+Alt+KeyN | N | Shift+Alt+N | Shift+Alt+N |
| Ctrl+Shift+Alt+KeyN | N |
Shif
t+N | Ctrl+Shift+Alt+N |
| Ctrl+Shift+Alt+KeyN | N |
Ctrl+Shift+Al
t+N | Ctrl+Shift+Alt+N |
| KeyO | o | O | O |
| Ctrl+KeyO | o | Ctrl+O | Ctrl+O |
| Shift+KeyO | O | Shift+O | Shift+O |
...
...
src/vs/workbench/services/keybinding/test/linux_en_us.txt
浏览文件 @
bbbe404c
此差异已折叠。
点击以展开。
src/vs/workbench/services/keybinding/test/mac_de_ch.txt
浏览文件 @
bbbe404c
...
...
@@ -266,7 +266,7 @@
| Alt+Digit5 | 5 | Alt+5 | Alt+5 |
| Ctrl+Alt+Digit5 | [ | [ | Ctrl+Alt+5 |
| Shift+Alt+Digit5 | % | Shift+Alt+5 | Shift+Alt+5 |
| Ctrl+Shift+Alt+Digit5 | [ |
[ | Ctrl+Shift+Alt+5 |
| Ctrl+Shift+Alt+Digit5 | [ |
Ctrl+Shift+Alt+
[ | Ctrl+Shift+Alt+5 |
| Digit6 | 6 | 6 | 6 |
| Ctrl+Digit6 | 6 | Ctrl+6 | Ctrl+6 |
| Shift+Digit6 | & | Shift+6 | Shift+6 |
...
...
@@ -274,7 +274,7 @@
| Alt+Digit6 | 6 | Alt+6 | Alt+6 |
| Ctrl+Alt+Digit6 | ] | ] | Ctrl+Alt+6 |
| Shift+Alt+Digit6 | & | Shift+Alt+6 | Shift+Alt+6 |
| Ctrl+Shift+Alt+Digit6 | ] |
] | Ctrl+Shift+Alt+6 |
| Ctrl+Shift+Alt+Digit6 | ] |
Ctrl+Shift+Alt+
] | Ctrl+Shift+Alt+6 |
| Digit7 | 7 | 7 | 7 |
| Ctrl+Digit7 | 7 | Ctrl+7 | Ctrl+7 |
| Shift+Digit7 | / | / | Shift+7 |
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录