DreymaR / BigBagKbdTrixPKL

"DreymaR's Big Bag of Keyboard Tricks" for Windows with EPKL
Other
326 stars 32 forks source link

4-finger multi touch disables trackpad #40

Open WTanardi opened 2 years ago

WTanardi commented 2 years ago

I'm using a laptop, and whenever epkl is open and I use the 4-finger tap gesture to bring up my notifications panel, it disables the trackpad and I have to click F6 (the laptop's lock trackpad key) to re-enable it

DreymaR commented 2 years ago

I don't know what the "4-finger tap gesture" you're referring to, is?

WTanardi commented 2 years ago

image

This right here

DreymaR commented 2 years ago

Oddness. Can you use the AHK Key History (from the EPKL menu) to gain any more insights as to what happens when you tap the four-finger gesture?

Does the three-finger tap gesture still work as expected?

And would it help if you just disable the tap-gesture? You could for instance put notification center on swipe-down instead and use an EPKL shortcut to show the desktop instead.

WTanardi commented 2 years ago

The history looks like this

image

Does the three-finger tap gesture still work as expected?

image

This is what happens when I do the 3 tap gesture, It opens the projection settings window

image

And would it help if you just disable the tap-gesture? You could for instance put notification center on swipe-down instead and use an EPKL shortcut to show the desktop instead.

For the suggested workaround, I'd rather still keep my default shortcut's as they are already implanted in my muscle memory

loopernow commented 1 year ago

This is what happens when I do the 3 tap gesture, It opens the projection settings window

Yes! This is happening to me too.

image

dfrvfmst commented 1 year ago

I use Colemak eD2VK ISO layout (Same issue occurs with VK layout). CapsLock behavior is Extend key. Mapping type is set to Tap-or-Mod (QWCLK = vcBSP/Ext VKey)

With a Precision Trackpad (that you can configure touchpad gesture directly in system settings):

dfrvfmst commented 1 year ago

Relevant comment: https://github.com/microsoft/PowerToys/issues/3703#issuecomment-638232708

DreymaR commented 1 year ago

Relevant comment: microsoft/PowerToys#3703 (comment)

Although not visible to the user, these gestures are made up of keys. For example, the three finger tap gesture uses the following keys: Ctrl Left + Shift Left + Win Left + F22, so when you remapped the Ctrl / Alt keys it could no longer access left Ctrl.

Sooo... If I understand this right, the gesture may send LCtrl + LShift + LWin + F22, and remapping/hooking any of these keys may cause the gesture mapping to fail.

By default, neither LWin nor LCtrl are mapped by EPKL. But LShift is, which allows its use as an EPKL Sticky Shift key. https://github.com/DreymaR/BigBagKbdTrixPKL/blob/d7023cd0ef1887b1b76d98089bd553f8858d36d5/EPKL_Layouts_Default.ini#L191

If you prefer to keep your gestures, you'll have to forgo EPKL's LShift mapping then (comment it out with a semicolon, or unset it in an Override file). Personally, I'd rather disable the gestures and keep Sticky Shift which I consider much more useful.

dfrvfmst commented 1 year ago

Off-topic: Sticky Shift causes Alt-Tab switcher to become "sticky".

Expected result:

Highlight changes to the previous one as Shift + Tab is pressed, then to the next one following Tab taps.

Actual result:

Highlight changes to the previous one as Shift + Tab is pressed, then still to the previous one for the first few Tab taps, then finally it changes to the next one following Tab taps.

dfrvfmst commented 1 year ago

~Appears to be fixed by adding QWLSH = System ; to the [layout] section of EPKL_Layouts_Override.ini.~

~Disabling Sticky Shift (stickyMods = ;) or Shift remapping (QWLSH = System ;) seems to still trigger the buggy behavior sometimes, although less frequently.~

You have to comment QWLSH = LShift Modifier in EPKL_Layouts_Default.ini. Attempting to override it in EPKL_Layouts_Override.ini doesn't seem to work:

DreymaR commented 1 year ago

Your three last attempts are bad syntax, and the first one is not a disabling of its mapping but the addition of a "System" key mapping. But as long as you got one to work, that's fine.

Off the top of my head, I think that QWLSH = -- should work.

As for your sticky Shift vs Tab observation: Yes, since the Tab key is not mapped by EPKL (to avoid messing with Alt-tabbing and suchlike) the Tab key will not cancel the sticky Shift timer so it remains sticky until the timer runs out. If you wish to use a combo of Shift+Tab and normal Tab, you have to hold down the Shift key a little so it becomes a normal switch-type Shift. You can hold Shift, then tap Tab as many times as you wish, then release Shift and keep tapping Tab.

dfrvfmst commented 1 year ago

QWLSH = -- ; appears to completely disable LShift, same as QWLSH = ;