我遇到了这个问题,但一直无法优雅地解决。我提供了以下代码作为可复现的示例
如果我触发shift
“+”键f23
,然后松开shift
但仍按住“+” f23
,如果我按下“+” control
,就会触发。我没想到会出现这种情况,而且我也不想要,如果“+”键已经按下,我肯定不想触发。control
f23
control
f23
f23
<^f23::
tooltip ctrl and f23 down
KeyWait, f23
tooltip ctrl and f23 up
return
<+f23::
tooltip shift and f23 down
KeyWait, f23
tooltip shift and f23 up
return
我有很多像上述这样的热键(<^f1
... <^f22
,等等),所以我正在寻找一种适合所有情况的解决方案。