yqrashawn / GokuRakuJoudo

config karabiner with ease
GNU General Public License v3.0
1.16k stars 121 forks source link

Simultaneous from to modifier key doesn't always work #95

Closed bnlokash closed 3 years ago

bnlokash commented 3 years ago
{
    :froms {
        :rt {:sim [:r :t]}
    }
    :main [{
        :des "test"
        :rules [[:rt :left_command]]
    }]
}

I am attempting to map a simultaneous press of r and t to left_command. It works for almost all keys except g. Here is some output from Karabiner event viewer:

Holding down r and t and pressing u works as expected:

type:key_down        code:227        name:left_command    misc:flags left_command
type:key_down        code:24         name:u               misc:flags left_command
type:key_up          code:24         name:u               misc:flags left_command
type:key_up          code:227        name:left_command    misc:

Holding down r and t and pressing g:

type:key_down        code:227        name:left_command    misc:flags left_command
type:key_up          code:227        name:left_command    misc:
type:key_down        code:23         name:t               misc:
type:key_up          code:23         name:t               misc:

Let's try another example:

{
    :froms {
        :yu {:sim [:y :u]}
    }
    :main [{
        :des "test2"
        :rules [[:yu :right_shift]]
    }]
}

Holding down y and u and pressing z works as expected:

type:key_down        code:229        name:right_shift     misc:flags right_shift
type:key_down        code:29         name:z               misc:flags right_shift
type:key_up          code:29         name:z               misc:flags right_shift
type:key_up          code:229        name:right_shift     misc:

Holding down y and u and pressing r:

type:key_down        code:229        name:right_shift     misc:flags right_shift
type:key_up          code:229        name:right_shift     misc:
type:key_down        code:229        name:right_shift     misc:flags right_shift
type:key_up          code:229        name:right_shift     misc:

Any ideas on how to implement this keybinding would be greatly appreciated!

MuhammedZakir commented 3 years ago

This is most probably a ghosting issue. Without any modification, press r+t+g or y+u+r and see if all letters are detected. You can use anything to test it - KE-EventViewer, TextEdit, etc...

P.S. A nice little webpage to test keyboard ghosting - https://github.com/drakeirving/MultiKeyDisplay/

bnlokash commented 3 years ago

You are correct, r+t+g failed even without any modification. Tested on another keyboard and the combination worked for all keys! Thanks for your help.