Sublime Forum

How to detect the context when sidebar is focused?


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”: “…” ,

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

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.


How to get visibility and focus of sidebar?