-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking changes of mod key release in xkeysnail 0.3.0 #74
Breaking changes of mod key release in xkeysnail 0.3.0 #74
Comments
I’ll take a look at what needs to be changed to fix it. I submitted the change so that Alt-Tab & Ctrl-Tab shortcuts could be properly remapped. The prior behavior of quickly emitting hotkeys instead of mimicking the actual modifier release is fine in many cases but not for hotkeys that need a held key as it’s the held key that will keep Window switching active (Alt-tab). Ctrl-tab is more specific to the app, but without a held modifier in some apps the tab switching will break if most recently used is the default behavior, you’ll only switch between 2 tabs instead of the entire list of tabs. |
Can you share w/ me your emacs config.py shortcuts file so I can make sure I know that I’ve resolved it? |
@rbreaves |
Ok, thank you @ncaq . I will try and work through this tomorrow or some time this week. I will either fix it in the K( ) function or propose a new one such as HK( ) for held key and honestly I thought about doing that, but given my specific needs and use cases I hadn't tested it as thoroughly as I'd have liked. Perhaps we can come up with some sort of unit tests or another to verify that new features or features I write don't break existing functionality lol. |
And that is interesting @ncaq, I will use xbindkeys -mk to monitor the difference then and see what I need to change to have things passing through the same as it does under 0.2. |
So I guess I shouldn't have admitted guilt so quickly @ncaq lol. It appears the breakage occurred by @kevinslashslash. I am not saying my own changes may not need to be modified slightly, but the issue existed before my own commit. The breaking commit
My commit changes
To figure this out I just used xbindkeys -mk and checked out what happens on those combos before and after my changes and saw that it behaved the exact same. Only when I went further back did I see the behavior you described. The log description with the breaking change. commit 8c4fadb
commit 56df0b9
|
Despite not having introduced the bug/behavior I have submitted a new commit/PR that I believe resolves the issues @ncaq. PR #76 My changes were significant enough that it really didn't matter who introduced it or why imo. The specific areas I had modified already were still the areas that needed modifying to correct the behavior. Unless someone can demonstrate a use case scenario where a key could get stuck I believe this behavior has been fixed. |
I'm sorry.
So I miss find the commit. |
Interesting, I have never seen or used git bisect before.. seems I am still learning new things about git all the time 😅. I tend to just use gitk or the git diff tool when I am inspecting things and it was fine to call me out earlier. @Lenbok had certainly found some issues with nested key remaps that needed fixing before the last merge. |
In my case, after e3dcedd, i.e. merging PR #71, With this simple configuration:
git bisect reports that first bad commit: [6cf21fe]
Unfortunately, PR #76 does not solve my problem. |
I noticed that when I pushed down the |
Is anyone looking into this anymore? At this point I've reverted to 0.2.0 to avoid it, but it would be nice to get updates. |
@ncaq Just to be clear here your issue here wasn't with any type of remapping, but just with the basic pass-thru behavior breaking your keystroke chains, yes? I'm trying to understand all the issues here to see if we can have our cake and eat it also - have a release that handles both cases without requiring any custom patches. |
@joshgoebel |
Breaking changes in xkeysnail 0.3.0.
The behavior is very different when you operate the keyboard in the following order.
xkeysnail 0.2.0: perform
Alt-w
xkeysnail 0.3.0: perform
w
This behavior is especially problematic when you are operating Emacs.
I perform
C-SPC
→C-e
→M-w
.When performing an operation such as, I have to be careful not to release the Ctrl key before hitting the Alt key but
w
will be typed.I think this breaking change because
Release mapped modifiers after the original is released. closes #70. by rbreaves - Pull Request #71 - mooz/xkeysnail
I'm not sure why this change was necessary in the first place when I look at the issue.
I'd like to ask @rbreaves what his intentions were in making the change to fix the disruptive change while maintaining the significance of the change.
original strings
xkeysnail 0.3.0の破壊的変更について.
以下の順にキーボードを操作したとき動作が大きく異なります.
xkeysnail 0.2.0: perform
Alt-w
xkeysnail 0.3.0: perform
w
この動作は特にEmacsを操作している時に問題になります.
C-SPC
→C-e
→M-w
のような操作をした時に,
Altキーを押す前にCtrlキーを離さないように慎重に気をつけないと
w
が入力されてしまいます.私はこの破壊的変更が
Release mapped modifiers after the original is released. Closes #70. by rbreaves · Pull Request #71 · mooz/xkeysnail
によって引き起こされたと思っていますが,
そもそもこの変更が何故必要だったのかissueを見てもよく分かりませんでした.
この変更の意義を保ったまま破壊的変更を修正するために @rbreaves に変更の意図を聞きたいです.
The text was updated successfully, but these errors were encountered: