![](/s/cache/c2/ef/c2ef997bf70b884f2a7c69d639c8b918.png)
0
on_query_context passes in None in the view
This may be related to http://sublimetext.userecho.com/topic/21146-key-binding-context-to-only-react-on-eg-python-code/
class GetFileType(sublime_plugin.EventListener):
def on_query_context(self, view, key, operator, operand, match_all):
# view is none at this point
![](https://cdn.userecho.com/characters/103.png?1)
0
glyph 13 years ago
There are contexts where the view *should* be None, although it seems like they aren't being queried now. See http://www.sublimetext.userecho.com/topic/87730-on_query_context-not-invoked-for-bindings-outside-of-a-view/
Maybe it would be better to have a different method for these "limbo" keybindings?
Customer support service by UserEcho