Escape
when not focused on a pane now focuses the last active editable pane.Node
(like Element
, HTMLElement
, etc) and all derivatives of UIEvent
(like MouseEvent
, KeyboardEvent
, etc)
element.doc
or event.doc
) and window (element.win
or event.win
).element.instanceOf(HTMLElement)
or event.instanceOf(MouseEvent)
to perform instanceof checks without having to worry about cross-window constructors.HTMLElement
now also has a onWindowMigrated
hook that can be used to monitor when the element gets attached to different windows. This can be used to re-initialize views that depend on window globals.window-open
and window-close
.MenuItem
now has a new method setSection(string)
. Items from the same section will be grouped together, in the order they were defined or first used. The default section (empty string) will contain all legacy/plugin/unspecified menu items and is usually put into a specific spot of the sort order (for example, before the danger items). Inspect the DOM to see existing sections' data-section
.MenuItem
directly - please use Menu.addItem
instead.View
, we've deprecated the onHeaderMenu
and onMoreOptionsMenu
in favor of a single onPaneMenu
function with a source
parameter. This new method will be used for both the header menu (right clicking on a tab header in the sidebar) and the more options menu (three dot menu).