We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2239a64 commit 06d3dd5Copy full SHA for 06d3dd5
1 file changed
frontend/javascript/ui.js
@@ -544,7 +544,7 @@ function mainEditorUi() {
544
editor.history.push(historyEntry)
545
drawMinimap()
546
}
547
- if ((e.ctrlKey || e.metaKey) && e.code == "KeyZ") {
+ if ((e.ctrlKey || e.metaKey) && e.code === "KeyZ") {
548
if (e.shiftKey) {
549
e.preventDefault()
550
redo()
@@ -555,6 +555,14 @@ function mainEditorUi() {
555
556
})
557
558
+ document.addEventListener("keydown", (e) => {
559
+ if ((e.ctrlKey || e.metaKey) && e.key === "s") {
560
+ console.log("s")
561
+ e.stopPropagation()
562
+ e.preventDefault()
563
+ updateMap()
564
+ }
565
+ })
566
567
568
0 commit comments