I am running 10.12.6 with Karabiner-Elements 0.91.9 and Alfred 3.4.1.
I have the following complex modification set:
"description": "Change return to control when used as modifier, return when used alone",
"from": {
"key_code": "return_or_enter",
"modifiers": {
"optional": [
"any"
]
}
},
"parameters": {
"basic": {
"to_if_alone_timeout_milliseconds": 400
}
},
"to": [
{
"key_code": "right_control"
}
],
"to_if_alone": [
{
"key_code": "return_or_enter",
"modifiers": {
"optional": [
"any"
]
}
}
],
"type": "basic"
The modification seems to be working properly apart from within Alfred. When I invoke Alfred and start searching to find a file/app, if I hit return quickly, Alfred interprets the return key for right control and then return instead of just return.
I think that I need to be able to specify that if the return key is released without another key being pressed then interpret that as just the return key. Is there a way of doing that?
Same issue here, is there a work around for this?
Please use lazy: true with "key_code": "right_control"
https://pqrs.org/osx/karabiner/json.html#typical-complex_modifications-examples-post-escape-if-left-control-is-pressed-alone
Thanks @tekezo. I have amended my complex modification to:
{
"description": "Change return to control when used as modifier, return when used alone",
"from": {
"key_code": "return_or_enter",
"modifiers": {
"optional": [
"any"
]
}
},
"parameters": {
"basic": {
"to_if_alone_timeout_milliseconds": 400
}
},
"to": [
{
"key_code": "right_control",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "return_or_enter",
"modifiers": {
"optional": [
"any"
]
}
}
],
"type": "basic"
}
When Karabiner loads the json file, I get the following error:
[2018-01-28 18:30:15.084] [error] [grabber] complex_modifications json error: modifier should be string form: ["any"]
Do you know what I need to change to get this working?
Many Thanks
Paul
I now have this working. I needed to change the above code for the "to_if_alone" to:
"to_if_alone": [
{
"key_code": "return_or_enter"
}
],
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Most helpful comment
Please use
lazy: truewith"key_code": "right_control"https://pqrs.org/osx/karabiner/json.html#typical-complex_modifications-examples-post-escape-if-left-control-is-pressed-alone