-
-
Notifications
You must be signed in to change notification settings - Fork 737
web: don't close pinned tab on ctrl+w #7805
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
web: don't close pinned tab on ctrl+w #7805
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR prevents the closing of pinned tabs when the user presses ctrl+w.
- Refactored the closeActiveTab method to retrieve the active tab object instead of only its id.
- Added a check to skip closing tabs that are marked as pinned.
Signed-off-by: 01zulfi <[email protected]>
a74a9e0
to
3c19363
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR ensures that when triggering the "close active tab" shortcut (ctrl+w/command+w), pinned tabs are not closed. Key changes include:
- Refactoring the action handler for closing tabs to check for a pinned active tab.
- Preventing the closure of pinned tabs by conditionally skipping the closeActiveTab() call.
Signed-off-by: 01zulfi <[email protected]>
679497e
to
67bedd5
Compare
Signed-off-by: 01zulfi [email protected]
Closes #7776