Skip to content

Commit

Permalink
neo2: Fix layer 2 lock
Browse files Browse the repository at this point in the history
Presumably with the newest version, layer 2 lock required to press both
shift keys for about at least 2 seconds.
  • Loading branch information
gifti258 committed Oct 21, 2024
1 parent 11aed52 commit 90a1f2d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 42 deletions.
45 changes: 12 additions & 33 deletions public/json/neo2.json
Original file line number Diff line number Diff line change
Expand Up @@ -6679,48 +6679,27 @@
{
"type": "basic",
"from": {
"key_code": "left_shift",
"modifiers": {
"mandatory": [
"right_shift"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "caps_lock"
}
],
"to_if_alone": [
{
"key_code": "left_shift"
}
]
},
{
"type": "basic",
"from": {
"key_code": "right_shift",
"simultaneous": [
{
"key_code": "left_shift"
},
{
"key_code": "right_shift"
}
],
"modifiers": {
"mandatory": [
"left_shift"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"key_code": "caps_lock"
}
],
"to_if_alone": [
"key_code": "caps_lock",
"hold_down_milliseconds": 200
},
{
"key_code": "right_shift"
"key_code": "vk_none"
}
]
}
Expand Down
11 changes: 2 additions & 9 deletions src/json/neo2.json.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,15 +230,8 @@ function rules() {
manipulators: [
{
type: 'basic',
from: { key_code: 'left_shift', modifiers: { mandatory: ['right_shift'], optional: ['caps_lock'] } },
to: [{ key_code: 'caps_lock' }],
to_if_alone: [{ key_code: 'left_shift' }]
},
{
type: 'basic',
from: { key_code: 'right_shift', modifiers: { mandatory: ['left_shift'], optional: ['caps_lock'] } },
to: [{ key_code: 'caps_lock' }],
to_if_alone: [{ key_code: 'right_shift' }]
from: { simultaneous: [{ key_code: 'left_shift' }, { key_code: 'right_shift' }], modifiers: { optional: ['caps_lock'] } },
to: [{ key_code: 'caps_lock', hold_down_milliseconds: 200 }, { key_code: 'vk_none' }]
}
]
},
Expand Down

0 comments on commit 90a1f2d

Please sign in to comment.