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

Support keyboard shortcuts in text fields #2

Closed
mtkennerly opened this issue Jul 7, 2020 · 1 comment
Closed

Support keyboard shortcuts in text fields #2

mtkennerly opened this issue Jul 7, 2020 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@mtkennerly
Copy link
Owner

mtkennerly commented Jul 7, 2020

These are already supported by default:

  • Paste
  • Select all

These would need to be added specially:

@mtkennerly
Copy link
Owner Author

mtkennerly commented Jul 10, 2020

I've implemented these, but I had to make the cut shortcut behave like copy for now. Because of a defect in Iced, cutting could lead to crashes (e.g., select all -> cut -> type any character). Technically, undo/redo can also lead to the same crash, but you'd have to go out of your way to trigger it, so I think it's an acceptable risk for now:

  • Delete a character from the end of the text field
  • Undo
  • Select the last character
  • Redo
  • Type any character

@mtkennerly mtkennerly added this to the v0.3.0 milestone Jul 12, 2020
chhe added a commit to chhe/ludusavi that referenced this issue Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant