Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable undo in textboxes #250

Open
kyoshino opened this issue Sep 13, 2017 · 5 comments
Open

Enable undo in textboxes #250

kyoshino opened this issue Sep 13, 2017 · 5 comments
Labels

Comments

@kyoshino
Copy link
Contributor

kyoshino commented Sep 13, 2017

Undo (Ctrl-Z) in textboxes doesn't work when:

  • Adding UA info or extension list into a textbox
  • Editing custom title template in the extension options

From #245 (comment):

The Paste event might be the solution, but it's not supported in the content script yet. I also tried document.execCommand('insertText', false, str) with no luck.

@kyoshino kyoshino added the bug label Sep 13, 2017
@akshat14714
Copy link

@kyoshino I am a newbie, and I want to solve this issue. Can you help me in solving this?

@kyoshino
Copy link
Contributor Author

kyoshino commented Oct 5, 2017

I'm also a newbie actually 😄 Please give it a shot if you can.

@MikkCZ
Copy link
Contributor

MikkCZ commented Oct 10, 2017

If the API is not supported, I suggest to use the standard history API (I guess this is supported) to store the previous textbox state and listen to Ctrl+Z/Ctrl+Shift+Z/Ctrl+Y key presses. Or we can store the input history in memory, but that has a potential to leaks.

@kyoshino
Copy link
Contributor Author

kyoshino commented Oct 10, 2017

The Undo Manager API has already been removed from Firefox 😿

@xabolcs
Copy link
Collaborator

xabolcs commented Oct 11, 2017

WebExtension Experiments could help here? If yes, then it could be done as a separate issue / workaround for Nightly and Developer Edition to not forget about Firefox Beta / Release and other Gecko (SeaMonkey, Thunderbird?) users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants