From ce10cc06f676c102d3c41f6ca062a369e7217ad9 Mon Sep 17 00:00:00 2001 From: Giftpflanze <80504430+gifti258@users.noreply.github.com> Date: Thu, 17 Oct 2024 18:08:01 +0200 Subject: [PATCH] Fix layer 2 lock As of recently, pressing left shift and right shift only activates layer 2 when held down or holding down for about 2 seconds and then releasing. --- src/json/neo2.json.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/json/neo2.json.js b/src/json/neo2.json.js index 8b8490c89..4494b3623 100644 --- a/src/json/neo2.json.js +++ b/src/json/neo2.json.js @@ -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' }] } ] },