mirror of
https://github.com/blueprint-community/extension-pteromonaco.git
synced 2026-02-19 03:41:54 +00:00
Compare commits
7 Commits
2-i-got-th
...
9-bug-mobi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b4f66610a4 | ||
|
|
6bc1f8ddb6 | ||
|
|
9c4e19b360 | ||
|
|
00a8d64de0 | ||
|
|
c65ba66980 | ||
| 64faf93a11 | |||
| bec87d1493 |
@@ -360,10 +360,12 @@ 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();
|
||||
} else if (action === 'new') {
|
||||
setModalVisible(true);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
4
conf.yml
4
conf.yml
@@ -2,7 +2,7 @@ info:
|
||||
name: "PteroMonaco"
|
||||
identifier: "pteromonaco"
|
||||
description: "Replaces the regular pterodactyl file editor with Monaco"
|
||||
version: "1.1"
|
||||
version: "1.2"
|
||||
target: "beta-2024-12"
|
||||
author: "Zephrynis"
|
||||
icon: "icon.png"
|
||||
@@ -13,4 +13,4 @@ admin:
|
||||
|
||||
dashboard:
|
||||
css: "style.css"
|
||||
components: "components"
|
||||
components: "components"
|
||||
|
||||
Reference in New Issue
Block a user