Make escape set focus on sidebar when focus is set on the editor

aristidesfl 13 jaar geleden 0
Currently escape has no function while the focus is on the editor and no panels are open.

It is possible to change the keymap to achieve this by verifying negatively if all the other possible contexts for the escape key are not met.

This is very cumbersome and doesn't provide compatibility should new cases for the use of escape be added to the keymap file in future versions.

Would be nice to have a key which indicates if the focus is set on the text editor so the context of the escape key could be set in a affirmative manner.

Anyway, this doesn't really work because escape is hardset to take focus from the sidebar so it only gains focus momentainly and then goes away..