Sublime Forum

Sublime-keymap does not work in mac

#1

Following is the code in file packages/User/Default (OSX).sublime-keymap. However, it did not work (did not open the repl) when I pressed the keys, instead it worked as cmd+b. Why? How do you fix it?

[
{“keys”: [“CMD+SHIFT+B”],

	"caption": "SublimeREPL: Python - RUN current file",

	"command": "run_existing_window_command", 

	"args":

	{

	"id": "repl_python_run",

	"file": "config/Python/Main.sublime-menu"

	}

    }

]
0 Likes

#2

The keys in the keys array need to be lower case, and cmd is not a supported key, so you probably want it to be the below. It works as ⌘+b only because something somewhere else is set up to do it…

"keys": ["super+shift+b"]

Also, key bindings don’t have a caption. I don;t use the plugin you’re using but this looks suspiciously like you might have copied something from a sublime-commands file and not a sublime-keymap. That may or may not matter, though.

1 Like