Skip to content

Commit 1f57747

Browse files
committed
feat(*): add swap ctrl shift with ctrl space func
1 parent d2477ab commit 1f57747

File tree

2 files changed

+65
-0
lines changed

2 files changed

+65
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"title": "Swap Ctrl+Shift with Ctrl+Space for Input Source Switching",
3+
"rules": [
4+
{
5+
"description": "Remaps the keyboard shortcut for input source switching, swapping Ctrl+Shift with Ctrl+Space for easier language switching.",
6+
"manipulators": [
7+
{
8+
"from": {
9+
"key_code": "left_shift",
10+
"modifiers": {
11+
"mandatory": [
12+
"left_control"
13+
]
14+
}
15+
},
16+
"to": [
17+
{
18+
"key_code": "spacebar",
19+
"modifiers": [
20+
"control"
21+
]
22+
}
23+
],
24+
"type": "basic"
25+
}
26+
]
27+
}
28+
]
29+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// JavaScript should be written in ECMAScript 5.1.
2+
3+
function main() {
4+
console.log(
5+
JSON.stringify(
6+
{
7+
title: 'Swap Ctrl+Shift with Ctrl+Space for Input Source Switching',
8+
rules: [
9+
{
10+
"description": "Remaps the keyboard shortcut for input source switching, swapping Ctrl+Shift with Ctrl+Space for easier language switching.",
11+
"manipulators": [
12+
{
13+
"from": {
14+
"key_code": "left_shift",
15+
"modifiers": { "mandatory": ["left_control"] }
16+
},
17+
"to": [
18+
{
19+
"key_code": "spacebar",
20+
"modifiers": ["control"]
21+
}
22+
],
23+
"type": "basic"
24+
}
25+
]
26+
}
27+
],
28+
},
29+
null,
30+
' '
31+
)
32+
)
33+
}
34+
35+
main()
36+

0 commit comments

Comments
 (0)