jtroo / kanata

Improve keyboard comfort and usability with advanced customization
GNU Lesser General Public License v3.0
3.21k stars 131 forks source link

Why doesn't `C-S-mlft` (open link in new tab and move to that tab in Chrome) work when mapped to anything? #1174

Closed newsve closed 4 months ago

newsve commented 4 months ago

Requirements

Describe the bug

Pretty much the title and tested on Windows

Relevant kanata config

e.g.

(defsrc /)

(deflayer one C-S-mlft)

To Reproduce

  1. Press / on a link in Chrome

Expected behavior

Open link in new tab and move to that tab in Chrome

Kanata version

latest (4a8268fe4f484b3036c2f2e1d388da8151d33659)

Debug logs

05:58:14.7781 [DEBUG] (1) kanata_state_machine::kanata::windows::llhook: event loop: KeyEvent { code: KEY_SLASH (191), value: Press } 05:58:14.7810 [DEBUG] (2) kanata_state_machine::kanata: process recv ev KeyEvent { code: KEY_SLASH (191), value: Press } 05:58:14.7829 [DEBUG] (2) kanata_state_machine::kanata: key press LCtrl 05:58:14.7849 [DEBUG] (2) kanata_state_machine::kanata: key press LShift 05:58:14.7870 [DEBUG] (2) kanata_state_machine::kanata: key press K272 05:58:14.7882 [DEBUG] (2) kanata_state_machine::oskbd::windows::llhook: click btn: Left 05:58:14.7996 [DEBUG] (1) kanata_state_machine::kanata::windows::llhook: event loop: KeyEvent { code: KEY_SLASH (191), value: Release } 05:58:14.8007 [DEBUG] (2) kanata_state_machine::kanata: process recv ev KeyEvent { code: KEY_SLASH (191), value: Release } 05:58:14.8017 [DEBUG] (2) kanata_state_machine::kanata: key release LCtrl 05:58:14.8059 [DEBUG] (2) kanata_state_machine::kanata: key release LShift 05:58:14.8095 [DEBUG] (2) kanata_state_machine::kanata: key release K272 05:58:14.8128 [DEBUG] (2) kanata_state_machine::oskbd::windows::llhook: release btn: Left

Operating system

Windows 11

Additional context

FWIW, I've also tested (multi lsft lctl mlft)

jtroo commented 4 months ago

Interesting, not sure why. The original works in Intereption but not llhook (tried legacy+winiov2). Works for me when the mlft has a delay though:

(deflayer one (multi lctl lsft (macro 10 mlft)))
newsve commented 4 months ago

Cool, this delay hack woks like a charm, thanks!