Alt-U to Ctrl-U does not work with key sequences in JetBrains Rider?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
kendallb
Posts: 9
Joined: 20 Nov 2019, 16:13
Contact:

Alt-U to Ctrl-U does not work with key sequences in JetBrains Rider?

20 Nov 2019, 20:40

I map some keys to make them Mac like on Windows, specifically the Alt-X/C/V style keys to Ctrl-X/C/V (and a lot more keys). One of the keys I map is Alt-U, but when I am using JetBrains Rider it uses key sequences that start with Ctrl-U such as Cltr-U R to run unit tests or Ctrl-U D to debug them. So when you hit Ctrl-U it starts listening for the next key for the sequence and times out after about 3-4 seconds.

The problem is that while Alt-U is translated to Ctrl-U, for some reason Rider does not see the Ctrl-U command as the start of a key sequence? Maybe I need to send the key in a different way as I am currently sending it via SendInput, but I tried the other versions to like SendEvent but it made no difference. Any suggestions? I am binding the key like this:

Code: Select all

; Map a Alt-U to Ctrl-U
!u::SendInput ^u
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Alt-U to Ctrl-U does not work with key sequences in JetBrains Rider?

22 Nov 2019, 16:26

Some variations to try. Cheers.

Code: Select all

!u::SendInput {Alt up}^u

!u::SendInput {LAlt up}^u

!u::SendInput {LAlt up}{LCtrl down}u{LCtrl up}

;not as good, but useful if all else fails:
!u::
KeyWait Alt
SendInput ^u
return
Possibly #MenuMaskKey is worth looking into:
#MenuMaskKey - Syntax & Usage | AutoHotkey
https://www.autohotkey.com/docs/commands/_MenuMaskKey.htm
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: bobstoner289, Google [Bot], peter_ahk and 324 guests