Sublime Forum

How to detect the context when sidebar is focused?

#1

I want to do some key bindings especially when sidebar is focused. The keybind syntax support the context keywords, but what’s the key to detect the focus of sidebar.

[code] { “keys”: “H”], “command”: “…” ,
“context”:

        {"key": "side_bar_has_focuse"} // do not work now.
    ]
},

[/code]
I know there is a panel_has_focus and I am wondering is there something like side_bar_has_focus or window_has_focus? I read the docs but do not find something similar.

0 Likes

How to get visibility and focus of sidebar?