diff --git a/startpage.html b/startpage.html index f50da88..4670b37 100644 --- a/startpage.html +++ b/startpage.html @@ -319,13 +319,13 @@ there are some keyboard shortcuts for your convenience:
"e" = enables editing mode
esc = disables editing mode (and saves page)
- "1"-"4" = jump between settings box tabs

+


- if you've accidentally pressed down on a "delete" button and want to - cancel, you can hit escape before releasing the mouse button to save - your progress and abort deletion. + precise adjustments: + if you click on a slider to focus it, and then keep your mouse hovered over it, + you can use the arrow keys to make minute adjustments.


@@ -580,7 +580,6 @@ let editing = false; let moving = false; let resizing = false; - let removing = false; let changingElement; let lastMouseX = 0; let lastMouseY = 0; @@ -975,10 +974,14 @@ +
+

+ +
@@ -986,12 +989,12 @@
- +
- +
@@ -1002,7 +1005,7 @@
- +
@@ -1025,12 +1028,12 @@
- +
- +
@@ -1098,13 +1101,13 @@
- +
- - + +
@@ -1114,8 +1117,8 @@
- - + +
@@ -1128,22 +1131,26 @@
- + +
+ +
+ +
+ +
- - + +
-
- - -
+
- - + +
@@ -1280,51 +1287,52 @@
-
-

border + shape options

-

+

-
-
+ +
+ + +
- -
- - -
+ +
+ + +
-
- - -
+
+ + +
-
- - -
+ +
+ + +
- -
- - -
-
- - -
-
-
- - -
-
-
- - -
-
- - -
+
+ + +
+ +
+ +
+ + +
+ +
+ + +
+ +
+ +
+ + +
@@ -1701,6 +1709,7 @@ if (e.key == "Escape" && editing) { toggleEditMode(); } + /* if (e.key == "1" && editing) { changeActiveTab({target: { id: "containerTab" }}); } @@ -1712,7 +1721,7 @@ } if (e.key == "4" && editing) { changeActiveTab({target: { id: "ioTab" }}); - } + } */ }); /** set up cursors */ @@ -2006,19 +2015,6 @@ movableElements[i].style.cursor = ""; } - // disable image removal mode active - if (removing) { - removing = false; - document.getElementById("imageRemovalToggle").checked = false; - let images = document.getElementsByClassName("userImage"); - for (let i = 0; i < images.length; i++) { - images[i].classList.remove("removable"); - } - document - .getElementById("imageRemovalWarning") - .classList.add("hidden"); - } - // hide the settings container settingsContainer.classList.add("hidden"); } @@ -2448,7 +2444,11 @@ function mouseDownMovableElement(mouseDown) { /** MOVEMENT / RESIZING HANDLERS */ - if (!editing || removing) { + if (!editing || + mouseDown.target.tagName == "BUTTON" || + mouseDown.target.tagName == "INPUT" || + mouseDown.target.classList.contains("expandableMenuToggle") + ) { return; }