mirror of
https://github.com/blueprint-community/extension-pteromonaco.git
synced 2026-02-18 19:41:53 +00:00
Various bug fixes
- Update CSS to permanent classes - Ctrl+S on new file opens naming modal - Ctrl+S with capslock saves file
This commit is contained in:
@@ -360,10 +360,12 @@ const Editor = () => {
|
|||||||
// Add keyboard shortcut for Ctrl+S (Windows/Linux) and Cmd+S (macOS)
|
// Add keyboard shortcut for Ctrl+S (Windows/Linux) and Cmd+S (macOS)
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const handleKeyDown = (event: KeyboardEvent) => {
|
const handleKeyDown = (event: KeyboardEvent) => {
|
||||||
if ((event.ctrlKey || event.metaKey) && event.key === 's') {
|
if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 's') {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
if (action === 'edit') {
|
if (action === 'edit') {
|
||||||
save();
|
save();
|
||||||
|
} else if (action === 'new') {
|
||||||
|
setModalVisible(true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
4
conf.yml
4
conf.yml
@@ -2,7 +2,7 @@ info:
|
|||||||
name: "PteroMonaco"
|
name: "PteroMonaco"
|
||||||
identifier: "pteromonaco"
|
identifier: "pteromonaco"
|
||||||
description: "Replaces the regular pterodactyl file editor with Monaco"
|
description: "Replaces the regular pterodactyl file editor with Monaco"
|
||||||
version: "1.1"
|
version: "1.2"
|
||||||
target: "beta-2024-12"
|
target: "beta-2024-12"
|
||||||
author: "Zephrynis"
|
author: "Zephrynis"
|
||||||
icon: "icon.png"
|
icon: "icon.png"
|
||||||
@@ -13,4 +13,4 @@ admin:
|
|||||||
|
|
||||||
dashboard:
|
dashboard:
|
||||||
css: "style.css"
|
css: "style.css"
|
||||||
components: "components"
|
components: "components"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
.igexuH, .eDlcZT {
|
.FileEditContainer___StyledDiv3-sc-48rzpu-7, .FileEditContainer___StyledDiv4-sc-48rzpu-8 {
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -7,12 +7,12 @@
|
|||||||
min-height: 16rem;
|
min-height: 16rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cDkCmT {
|
.Button__ButtonStyle-sc-1qu1gou-0 {
|
||||||
flex: 1 1 0%;
|
flex: 1 1 0%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 640px) {
|
@media (min-width: 640px) {
|
||||||
.cDkCmT {
|
.Button__ButtonStyle-sc-1qu1gou-0 {
|
||||||
flex: none;
|
flex: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user