Sublime Forum

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

#1

I have media keys on keyboard and when Sublime is focused, the media keys don’t work anymore. Sadly I can’t say if this is a “new” issue, as this machine is a clean install.

Sublime ver. 3.1.1 Build 3176
Windows 10 1803 64bit

Keyboards:

  • Logitech 710+
  • Cherry Stream 3.0
0 Likes

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

I have a 10 or 15 years old Microsoft Natural Keyboard with a couple of media keys working well at any time on Win 10 1803 x64.

0 Likes

#4

I tried two keyboards that both had the same problem.
Keyboards:

  • Logitech 710+
  • Cherry Stream 3.0
0 Likes

#5

I have rarely had less support for a product I purchased.

0 Likes

#6

have you checked if anything is logged when you open the ST console (from the View menu -> Show Console) and type sublime.log_input(True); sublime.log_commands(True) Enter then press your media buttons?

1 Like

#7

I had not, but I have now.
It does not log the media keys. For other keys I get logs like:

chr evt: s (0x73)
chr evt: a (0x61)
key evt: backspace
command: left_delete
key evt: backspace
command: left_delete
command: drag_select {“event”: {“button”: 1, “x”: 6.5, “y”: 762.5}}
key evt: control+c
command: copy

This is not the case for the media keys. There is no reaction from the console.

0 Likes

#8

this would indicate that ST doesn’t see or eat the keypresses

0 Likes

#9

Any suggestions on why then only when Sublime 3 is in focus, I can’t use media keys?

0 Likes

#10

I mean there are a number of keys that don’t show up in the console, but I bet that ST sees. It just shouldn’t intercept them. And generally it doesn’t. And I bet that ST shouldn’t act on media keys, but it still eats them.

0 Likes

#11

I have this issue as well; I am unable to use my keyboard’s global media keys when Sublime Text has focus. I am on Windows 10 x64.

0 Likes

#12

This has been solved for me.

I had “execute as admin” enabled for sublime which apparently block media keys and such.

0 Likes

#13

You can force them to work even when running on administrator mode. This happens because all programs running on administration mode, have a “exclusivity” with the keyboard, i.e., no other program not also running on administrator mode can access the keyboard, while there is some program with focus running on administrator mode.

Then, all programs running on administrator mode, compete between each other equally for the keyboard keys. Hence, you can keep running Sublime Text as administrator mode, as long as your Music Program is also running on administrator mode.

In case you are remapping your keyboard keys with AHK as suggested on:

You can also keep running Sublime Text as administrator, if you also run your AHK (AutoHotKey.exe) script as administrator.

Usually, on your computer, you should have no program running on administrador mode because it is a very big security issue, because a program running on administrator mode can do anything with your computer, including read other programs memory, and corrupt Windows protected files.

0 Likes

Ubuntu 17.04 Switching view to 2 columns with alt+shift+2 not working