2

I like to assign what I consider the most useful/used shortcut in my IDE or editor to the 0 on the numeric keypad. I find it fast and convenient. I have keypad in NumLock mode but that is fine. I would like to assign Sublime's SH-CTRL-P to this key but I can't seem to do it. I can get close with the PLUS key by using:

{ "keys": ["keypad_plus"], "command": "show_overlay", "args": {"overlay": "command_palette"} }

I've tried keypad_zero and keypad_0 but neither worked. Can it be done? What's the magic string?

4

1 回答 1

8

keypad0应该管用。通过记录输入发现sublime.log_input(True)虽然我认为某处也有一个列表,只是懒得找到它。:)

于 2013-04-30T22:48:14.057 回答