The above codes can result in side effects.
For example, sending Esc tells the brower to stop loadng.
Sending vkE8 or vkFF prints an extra @ in PowerShell. (More on this: https://github.com/PowerShell/PSReadLine/issues/2036)
Besides, the ~LAlt:: way still triggers the menu sometimes in Firefox (because of reapting Alt down perhaps).
Here is a better way.
It's basically LAlt::LAlt and RAlt::RAlt with modification.
It blocks the menu with {Ctrl up} between {Alt down} and {Alt up}.
Note that {Ctrl up} is better than {Ctrl} because it sends less strokes and is less likely to cause side effects.
The KeyWait "LAlt" and KeyWait "RAlt" is to stop reapting {LAlt down} and {RAlt down}.
BTW, I would advice against reducing the codes to just *Alt:: and ~*Alt up::, which can cause issues with RAlt.
For example, sending Esc tells the brower to stop loadng.
Sending vkE8 or vkFF prints an extra @ in PowerShell. (More on this: https://github.com/PowerShell/PSReadLine/issues/2036)
Besides, the ~LAlt:: way still triggers the menu sometimes in Firefox (because of reapting Alt down perhaps).
Here is a better way.
CODE:
; LAlt modified
*LAlt::{
SetKeyDelay -1
Send "{Blind}{LAlt down}{Ctrl up}"
KeyWait "LAlt"
}
~*LAlt up::{
SetKeyDelay -1
Send "{Blind}{LAlt up}"
}
; RAlt modified
*RAlt::{
SetKeyDelay -1
Send "{Blind}{LAlt down}{Ctrl up}"
KeyWait "RAlt"
}
~*RAlt up::{
SetKeyDelay -1
Send "{Blind}{RAlt up}"
}
It's basically LAlt::LAlt and RAlt::RAlt with modification.
It blocks the menu with {Ctrl up} between {Alt down} and {Alt up}.
Note that {Ctrl up} is better than {Ctrl} because it sends less strokes and is less likely to cause side effects.
The KeyWait "LAlt" and KeyWait "RAlt" is to stop reapting {LAlt down} and {RAlt down}.
BTW, I would advice against reducing the codes to just *Alt:: and ~*Alt up::, which can cause issues with RAlt.
Statistics: Posted by riyah96662 — Today, 13:53