evilC / TapHoldManager

An AHK library for Long Press / Multi tap / Multi tap and hold
MIT License
124 stars 13 forks source link

Double tap ALT causes `ALT + TAB` and `ALT + F4` to stop working #7

Closed arshcaria closed 2 years ago

arshcaria commented 2 years ago

I am trying to map double tap ALT to something else, and it works.

But it causes other ALT + whatever shortcuts (such as ALT + TAB and ALT + F4 ) to stop working.

Any solutions to this?

The script is like below:

#include Lib\TapHoldManager.ahk

thm := new TapHoldManager()
thm.Add("LAlt", Func("PressWin1"))

; send WIN + 1
PressWin1(isHold, taps, state) {
    if (!isHold && taps == 2) {
        Send, #1
    }
}