#1
|
||||
|
||||
Enable Undo on File Name/Package Name?
This is the closest I've found regarding this:
https://board.jdownloader.org/showthread.php?t=67045 And in the thread, Jiaz mentioned: Quote:
I don't think we really need to make a more complicated version, like the post above seems to be alluding to. Just a basic one where while you're still typing and made a mistake or pasted a long-ass link instead of the file name, you can just hit Ctrl+Z. If you've already pressed Enter or clicked outside the box then you're just SOL but I think most naming mistakes/typos are caught while the textbox is still active anyway. Right now, I have to highlight the whole thing and it sometimes takes a while especially when it's one of those really really long direct links. Or when highlighting text, due to the small nature of the text box, the highlight will apply on the opposite part of the text on click release and now you have the retype the whole thing, etc. Lol. Thanks! Last edited by DukeM; 07.10.2021 at 10:22. |
#2
|
||||
|
||||
@DukeM: to support UNDO a text(edit) component requires a so called UndoManager assigned, that keeps tracking of previous states. Those must be explicit assigned.
To abort current edit/change, ESC key should work in most places. Can you tell me where you would need such feature most? then I can start working on the ticket at those places first and we/you can check if it works as expected. Please know that I need to know where you edit something? Within the table is a different component, than a dialog or the property window.
__________________
JD-Dev & Server-Admin |
#3
|
||||
|
||||
Quote:
Quote:
Quote:
But to be fair, now that I know I can use Esc for the mess-ups I'd be making, I don't mind not having this feature, at least not immediately. Haha. Thanks, @Jiaz! |
#4
|
||||
|
||||
Oh no, I just messed up a rename and pasted a link on the text field. Tried pressing Esc and it just highlighted the whole text and didn't "reset" it. Hahaha.
|
#5
|
||||
|
||||
Works fine here.
While it does select the whole text, it also resets it to the text there was before. Did you maybe click outside of the comment field in between? If you lost important information you might be able to restore it this way. If you think you found a bug: Please post your log-ID here | bitte poste deine Log-ID hier. -psp-
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#6
|
||||
|
||||
Hey @psp! I was just about to edit that additional comment. Haha. I'm making a fool of myself here but it doesn't matter.
So yeah, for me at least, it still doesn't revert the file name after pasting text BUT if I type in anything after that (even just one character) then pressing Esc, it reverts it back to the text before the paste. Haha. So, it works! My JD2 is probably just a little bit special and needs extra attention. |
#7
|
||||
|
||||
Ahh so you were talking about the filename field, not comment field?
Anyways - works fine here too, the behavior is the same as descibed in my last post hmm
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
Thread Tools | |
Display Modes | |
|
|