moolmanruan / obsidian-sequence-hotkeys

Obsidian plugin to support a sequenced of keyboard shortcuts to run commands.
GNU General Public License v3.0
36 stars 2 forks source link

Software keyboard key remapper (e.g., kanata or kmonad) seems to break Sequence Hotkeys #29

Open GitMurf opened 7 months ago

GitMurf commented 7 months ago

I just started using Kanata (https://github.com/jtroo/kanata) to add home row mods to my windows laptop keyboard. When I have it turned on, the Sequence Hotkeys plugin does not work at all. When I go to re-map something when I press the ctrl key for example to combo with something else, it just passes a bunch of empty ctrl- key presses.

The software keymapper I believe intercepts every keypress so is somehow this plugin not reading the key codes the same way the remapper is outputting them? Or is this plugin intercepting the keypresses too quickly before the keymapper has a change to intercept and output the correct keycode? The Obsidian native hotkeys mapper works fine (as expected).

Here is screenshot of what happens when I try to map something new:

image

ruan-renderheads commented 7 months ago

Hi @GitMurf, I can try to have a look, but I use Karabiner on Mac and I don't have issues. What is the exact key you are trying to press with Ctrl and is that key being handled in Katana in any way? The plugin just captures whatever onkeydown and onkeyup events that get triggered, so if the remapper prevents the onkeyup from triggering for a key for instance, it would break it.

I wish I had access to the Obsidian code base to see how they handled some of the key press code, I think I would've been able to fix a few issues that way.