Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Listener for tab close #14

Open
hrj opened this issue Dec 3, 2014 · 0 comments
Open

Listener for tab close #14

hrj opened this issue Dec 3, 2014 · 0 comments
Milestone

Comments

@hrj
Copy link
Member

hrj commented Dec 3, 2014

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

  1. a tab with child tabs is being closed
    1. is collapsed -- could close only self or all children as well (possibly after confirmation)
    2. is not collapsed -- close only self if normal click, but close children also if Shift+Click, for example.
  2. 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:

  1. tab is collapsed or not
  2. state of keyboard modifiers like SHIFT.
@hrj hrj added this to the version 0.2 milestone Dec 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant