Tuesday, October 27, 2015

keyboard shortcuts - How to use Shift+CapsLock+L to select text


I used the following code to remap some key combinations. However, they do not work when pressed by other modifiers. For example, I want to select text using CapsLock+Shift+L (just as Shift+Right Arrow does), but this does not work. What's wrong with it?


CapsLock::Send, {CTRLDOWN}{SHIFTDOWN}{SHIFTUP}{CTRLUP}{CTRLUP}
return
!^CapsLock::CapsLock
CapsLock & j :: Send {Down}
CapsLock & k :: Send {Up}
CapsLock & h :: Send {Left}
CapsLock & l :: Send {right}
CapsLock & p :: Send {PGUP}
CapsLock & `; :: Send {PGDN}
CapsLock & ^ :: Send {home}
CapsLock & $ :: Send {end}

Answer



See help topic on Remapping Keys and Buttons


Add {Blind} as needed... I'm not sure the first two lines of code listed are necessary but I'm sure you can get it to work...


CapsLock & j  :: Send {Blind}{Down}
CapsLock & k :: Send {Blind}{Up}
CapsLock & h :: Send {Blind}{Left}
CapsLock & l :: Send {Blind}{right}

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...