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 18, 2024
1 parent 588b785 commit 4149e01
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 42 deletions.
41 changes: 8 additions & 33 deletions public/json/neo2.json
Original file line number Diff line number Diff line change
Expand Up @@ -6679,35 +6679,15 @@
{
"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"
]
Expand All @@ -6717,11 +6697,6 @@
{
"key_code": "caps_lock"
}
],
"to_if_alone": [
{
"key_code": "right_shift"
}
]
}
]
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' }]
}
]
},
Expand Down

0 comments on commit 4149e01

Please sign in to comment.