2 Commits

Author SHA1 Message Date
bec87d1493 Fix save shortcut to handle uppercase 'S' key
Updated the keyboard shortcut handler to use event.key.toLowerCase() for detecting 's', ensuring the save action works regardless of key case.
2025-08-06 23:53:16 +01:00
Zephrynis
59af15d5c6 Update issue templates 2025-07-21 13:02:28 +01:00
2 changed files with 7 additions and 8 deletions

View File

@@ -1,8 +1,8 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
title: "[BUG] "
labels: bug
assignees: ''
---
@@ -28,11 +28,10 @@ If applicable, add screenshots to help explain your problem.
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Panel Info (please complete the following information):**
- Pterodactyl Version: [e.g. 1.11.11]
- Blueprint Version: [e.g. beta-2024-12]
- Blueprint Addons [e.g. PteroMonaco, Nebula, Any others]
**Additional context**
Add any other context about the problem here.

View File

@@ -360,7 +360,7 @@ const Editor = () => {
// Add keyboard shortcut for Ctrl+S (Windows/Linux) and Cmd+S (macOS)
useEffect(() => {
const handleKeyDown = (event: KeyboardEvent) => {
if ((event.ctrlKey || event.metaKey) && event.key === 's') {
if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 's') {
event.preventDefault();
if (action === 'edit') {
save();