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

text-field% hot-keys #302

Open
eddierucker opened this issue Nov 29, 2021 · 2 comments
Open

text-field% hot-keys #302

eddierucker opened this issue Nov 29, 2021 · 2 comments

Comments

@eddierucker
Copy link

What version of Racket are you using?
Welcome to DrRacket, version 8.3 [cs].

What program did you run?

#lang racket/gui

(define f (instantiate frame% ("Test")))
(define tf (instantiate text-field% ("Entry:" f)))
(send f show #t)

What should have happened?
On Windows:
Ctrl+left arrow should move the cursor back a word at a time and
Ctrl+right arrow should move the cursor forward a word at a time.
On Mac:
Alt+left arrow should move the cursor back a word at a time and
Alt+right arrow should move the cursor forward a word at a time.

If you got an error message, please include it here.
Not an error per se, but used to work in 8.2.

Please include any other relevant details
Was this intentional? If so, how do we implement the old behavior?

@mflatt
Copy link
Member

mflatt commented Jan 3, 2022

@eddierucker From email, it sounds like this isn't a change after all, and the difference is what text-field% and editor-canvas% do by default. But if I understand correctly, it could make sense to improve text-field% here.

@eddierucker
Copy link
Author

Most GUI toolkits I've used include the key functionality for field/entry widgets, Swing, JavaFX, tkinter, Qt, etc. I mistakenly thought that they worked in Racket's text-field% component. They are very useful and I would like to see them in Racket's text-field% and editor-canvas% components if not too time-consuming to implement.

@sorawee sorawee transferred this issue from racket/racket Jul 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants