Sublime Forum

S3 catches some keys, like media keys or PrtSc so I cannot use them while S3 is in focus

#1

I cannot use my media keys or the print screen key while Sublime 3 is in focus.

I use Sublime 3.1.1 build 3176 on Windows 10v1809 64bit

When I use “sublime.log_input(True)” I can see that S3 doesn’t “log” those keys, but they still get blocked, which is fairly annoying as I can’t control my music and the new Win10 Snipping function also gets blocked.

Anyone know how I can get S3 to ignore some keys?

0 Likes

Sublime blocks media keys when in focus ... ! no support received!
#2

This usually happens when you run any program (as Sublime Text) on Windows with administrator mode, instead of user mode/usual mode. If this is not the problem, maybe you can figure out some hack using AHK:

  1. https://www.autohotkey.com/
  2. https://www.autohotkey.com/docs/Program.htm
  3. https://superuser.com/questions/278951/my-keyboard-has-no-media-keys-can-i-control-media-without

My keyboard has no media keys, but I use this script for AHK which works fine with Sublime Text

^!Left::Send   {Media_Prev}
^!Right::Send  {Media_Next}
+^!Left::Send  {Volume_Down}
+^!Right::Send {Volume_Up}
^!Down::Send   {Media_Play_Pause}
+^!Down::Send  {Volume_Mute}

^!Left::Send  {Media_Prev}
^!Right::Send {Media_Next}
Pause::Send   {Media_Play_Pause}

Duplicate post:

0 Likes

#3

It was the admin right. Thank you so much <3

1 Like