Closed mkassner closed 9 years ago
mostly done. Overflow will not show. Caret is rendered.
Fixed caret behavior for delete event. Prior to latest commit, when caret was moved to the 0 index (all the way left) with text remaining and delete key pressed, the would result in unwanted addition to self.preview list. See changes at this commit -- https://github.com/pupil-labs/pyglui/commit/10951189d6bea02e790989e1277bca807b519d1b.
I also disabled color change for text on selection. glfont.set_color_float
changes the state for the fontstash context and therefore changes all subsequent font colors to the selection color specified unless you reset the state.
Added a highlight line below the text when selected.
Feature request (todo)
shift
+ left/right arrow keys to highlight text. Added functionality
shift
+ right-arrow
or shift
+left-arrow
Bugreport: Selecting with shift and arrow key works but when releasing shift key selection process with left arrow continues while using right arrow will stop it.
Over writing selected text is funny, I guess having the first key input replace the selection would be best.
Feature Request: Deal with overflowing text:
I'm moving some of these bugs and features into their own issue. I created a branch for text input so that we don't have too many merge conflicts in master.
Feature - Make caret blink
Closing - almost all features implemented (aside from blinking caret -- that one can be done later :)