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
This PR introduces a ubiquitous "Quick Exit" (Panic Button) to the SafeVoice platform. This is a standard and critical safety feature commonly found on domestic violence, harassment support, and mental health websites.
The feature allows users to instantly leave the platform and hide their activity if someone unexpectedly approaches, prioritizing user safety and privacy.
🎯 Key Features
🔴 Floating Action Button
Added a highly visible floating “QUICK EXIT” button fixed at the bottom-left corner of the screen.
Available globally across all pages/routes.
Styled using Tailwind CSS with an emergency-focused UI.
⌨️ Keyboard Shortcut Support
Users can trigger the quick exit without touching the mouse by:
Pressing the Escape key 3 times within 2 seconds
This improves accessibility and enables faster emergency exits.
This PR introduces a ubiquitous "Quick Exit" (Panic Button) to the SafeVoice platform. This is a standard and critical safety feature commonly found on domestic violence, harassment support, and mental health websites.
The feature allows users to instantly leave the platform and hide their activity if someone unexpectedly approaches, prioritizing user safety and privacy.
🎯 Key Features
🔴 Floating Action Button
Added a highly visible floating “QUICK EXIT” button fixed at the bottom-left corner of the screen.
Available globally across all pages/routes.
Styled using Tailwind CSS with an emergency-focused UI.
⌨️ Keyboard Shortcut Support
Users can trigger the quick exit without touching the mouse by:
Pressing the Escape key 3 times within 2 seconds
This improves accessibility and enables faster emergency exits.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
This PR introduces a ubiquitous "Quick Exit" (Panic Button) to the SafeVoice platform. This is a standard and critical safety feature commonly found on domestic violence, harassment support, and mental health websites.
The feature allows users to instantly leave the platform and hide their activity if someone unexpectedly approaches, prioritizing user safety and privacy.
🎯 Key Features
🔴 Floating Action Button
⌨️ Keyboard Shortcut Support
Users can trigger the quick exit without touching the mouse by:
This improves accessibility and enables faster emergency exits.
🛡️ Safe Redirection Using History API
Implemented:
instead of:
Why?
Using
location.replace()removes SafeVoice from the browser back stack so pressing the browser Back button will not immediately reopen the site.This helps protect user privacy in unsafe situations.
🌍 Global Integration
This ensures the feature remains active and accessible regardless of route navigation.
🧠 Why this Enhances the Product
This feature demonstrates:
It directly aligns with the mission of SafeVoice by prioritizing user protection and emergency usability.
🛠️ Implementation Details
Added:
QuickExit.tsxreusable componentuseEffectlucide-reactEscape Detection Logic
📸 Screenshots / Video
✅ Checklist
🔖 Labels
enhancementfrontendUXaccessibilitysecurityGSSoC'26🔗 Related Issue
Closes #143