You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It should be possible to register a listener than gets called whenever a tab is about to be closed. And, it should be possible to cancel the closure through the listener.
Use cases
a tab with child tabs is being closed
is collapsed -- could close only self or all children as well (possibly after confirmation)
is not collapsed -- close only self if normal click, but close children also if Shift+Click, for example.
a tab has dirty content
a tab could have unsaved changes, and hence require confirmation before closing.
To cover all these use-cases, various contexts need to be available to the listener:
tab is collapsed or not
state of keyboard modifiers like SHIFT.
The text was updated successfully, but these errors were encountered:
It should be possible to register a listener than gets called whenever a tab is about to be closed. And, it should be possible to cancel the closure through the listener.
Use cases
Shift
+Click
, for example.a tab could have unsaved changes, and hence require confirmation before closing.
To cover all these use-cases, various contexts need to be available to the listener:
SHIFT
.The text was updated successfully, but these errors were encountered: