Bind keyboard shortcut to specific subview

I’m trying to use a multicombo in a datatable, and because multicombo editors aren’t supported, I’ve used a subview.

The problem is that I can’t correctly setup a keyboard shortcut (ESC) to close the subview, and only that subview in which ESC was pressed, not all open subviews.

Can someone please take a look at the snippet linked above, lines 58-65?

https://snippet.webix.com/nhcmwr9v

Good idea to check if the subview that caught the Esc is the active one

if(view.$view.contains(document.activeElement)).

Thanks!