gui icon indicating copy to clipboard operation
gui copied to clipboard

text-field% hot-keys

Open eddierucker opened this issue 4 years ago • 2 comments

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?

eddierucker avatar Nov 29 '21 16:11 eddierucker

@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.

mflatt avatar Jan 03 '22 19:01 mflatt

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.

eddierucker avatar Jan 03 '22 19:01 eddierucker