Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit be33e66

Browse files
andauthored
Add Esc key functionality to close side panel (#80)
- Modified cancel event listener to trigger animateCloseDialog() - Esc key now closes the panel with proper slide-out animation - Maintains consistency with other close methods (X button, backdrop click) Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude
1 parent 99f5f27 commit be33e66

File tree

1 file changed

+2
-1
lines changed
  • side-panel-dialog.html

1 file changed

+2
-1
lines changed

side-panel-dialog.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,10 @@

Send feedback

262262
// Fix animation issues with dialog element
263263
document.addEventListener('DOMContentLoaded', () => {
264264
const dialog = document.getElementById('sidePanel');
265-
// Force browser to recognize dialog animations by adding a small delay
265+
// Handle Esc key to close the dialog with animation
266266
dialog.addEventListener('cancel', (event) => {
267267
event.preventDefault();
268+
animateCloseDialog();
268269
});
269270
});
270271

0 commit comments

Comments
(0)