Adding confirmation alert to leave or stay the page in editor.

FlyingPirateCat

Well-known member
Joined
Aug 6, 2019
Messages
64
Points
58
I want to request to disable keyboard shortcut "back" when you're in the editor.
Sometimes my fingers would slip as I type and unintentionally pressed this shortcut and the page suddenly gone, replaced with previous one.

I lost my progress lots of times because of this T.T

Edit: Or perhaps adding a confirmation alert to stay or leave the page will also do.

Edit2: Perhaps picture speak louder than words. What I request is just add this to prevent accidental data loss.



smile.png
bust comparison.jpg
mon petit.jpg
XP-Pen.png
riku sleep.jpg
 
Last edited:

tiaf

ゞ(シㅇ3ㅇ)っ•♥•Speak fishy, read BL.•♥•
Joined
May 29, 2019
Messages
3,127
Points
183
I support a confirmation alert!
 

Tony

Moderator
Staff member
Joined
Dec 21, 2018
Messages
749
Points
133
I want to request to disable keyboard shortcut "back" when you're in the editor.
Sometimes my fingers would slip as I type and unintentionally pressed this shortcut and the page suddenly gone, replaced with previous one.

I lost my progress lots of times because of this T.T

Edit: Or perhaps adding a confirmation alert to stay or leave the page will also do.
I support a confirmation alert!

What's the shortcut key? As in which button is it on your keyboard? I'm asking because I dunno.
 

tiaf

ゞ(シㅇ3ㅇ)っ•♥•Speak fishy, read BL.•♥•
Joined
May 29, 2019
Messages
3,127
Points
183
What's the shortcut key? As in which button is it on your keyboard? I'm asking because I dunno.
It doesn’t even need to be a shortcut. Just tapping the backspace button (while cursor is not in text) or F5 is enough to destroy all the editing.

Also, it’s super easy to accidentally activate the “previous page” gesture on touchpad or on mobile. (Reason I don’t edit on phone, but you can’t just remove the touchpad on a laptop)
 

FlyingPirateCat

Well-known member
Joined
Aug 6, 2019
Messages
64
Points
58
What's the shortcut key? As in which button is it on your keyboard? I'm asking because I dunno.

I also dunno which button it is. Suddenly the editor froze and a few moments later everything was gone.
millbank.jpg
sinking ship.jpg
Kusanagi Elementary School.jpg
Sports Building.jpg
Sketch - Riku.png
 
Last edited:

Tony

Moderator
Staff member
Joined
Dec 21, 2018
Messages
749
Points
133
It doesn’t even need to be a shortcut. Just tapping the backspace button (while cursor is not in text) or F5 is enough to destroy all the editing.

Also, it’s super easy to accidentally activate the “previous page” gesture on touchpad or on mobile. (Reason I don’t edit on phone, but you can’t just remove the touchpad on a laptop)

Thanks! I'll take a look at this.

I also dunno which button it is. Suddenly the editor froze and a few moments later everything was gone.

That'll be a bit hard to fix your problem then if you don't know which button it is. I'll need to be able to recreate the problem before I can fix it. If you ever find out, please let me know.
 

Zoey

Mustachu
Joined
Oct 21, 2019
Messages
133
Points
133
If you press alt+LeftArrow it's equivalent to pressing the back arrow in your browser window.

As this is built into most browsers I doubt you can disable this.

Edit: or maybe you can I don't know
 
Last edited:

FlyingPirateCat

Well-known member
Joined
Aug 6, 2019
Messages
64
Points
58
Bump!

I hereby request to add the confirmation leave or stay popup in the editor.


office building.jpg
butterfly effect.png
Raspberry Pi PC.jpg
Super Fierce.png
caltrop emoji.png
 
Last edited:

FlyingPirateCat

Well-known member
Joined
Aug 6, 2019
Messages
64
Points
58
Not quite a solution, but whatever...

JavaScript:
// ==UserScript==
// @name     Prevent data loss?
// @version  1
// @author FlyingPirateCat
// @include http://www.scribblehub.com/editchapter/*
// @include https://www.scribblehub.com/editchapter/*
// @grant    none
// ==/UserScript==

window.onbeforeunload = function() {
    return "Do you really want to leave?";
};
 
Top