[ Return to Bugs & Features | Roadmap 1.3 | Post Text | Post File ]
|Status:||5 - New|
|Priority:||2 - Low, e.g. a documentation error or undocumented side-effect|
|Scope:||3 - Applies to all machines and operating systems|
|Summary:||Fl_Text_Display: needs keyboard nav for caret motion and keyboard selection|
Trouble Report Files:
[ Post File ]
Trouble Report Comments:
[ Post Text ]
10:38 May 11, 2012
|Fl_Text_Display seems to have the features Fl_Multiline_Output does in that one can enable a 'caret' cursor that could be used for keynav selection, but the caret doesn't respond to keyboard motion (up/down/left/right or 'shift selection'). |
Also, there seems to be inconsistencies in how the caret is displayed once it's enabled. If the widget opens without focus, the caret can not be made to appear via keyboard nav (ie. using the tab key to shift focus). Probably the caret should appear when the widget has focus, and disappear when not in focus (if it's enabled).
14:52 May 12, 2012
|Adding a file here, 'display-issue.cxx'. |
If compiled as is (on linux/flwm), no caret appears, even if you use
TAB to shift focus to/from the button.
But if you comment out the (A) line, this causes the display to take
focus, allowing the caret to appear, and it remains even if you use
tab to shift focus from it.
Also: when the caret is visible, keynav can't be used to move it;
only mouse clicks and selections can manipulate it.
14:55 May 12, 2012
|Oops, accidentally posted the code with the "(A)" line |
already commented out, so when built by default
the caret shows OK; you'll have to remove the comment
to make the caret disappear.
15:14 Sep 04, 2014
|For what it's worth, I think this behaviour is "by design", in so far as Fl_Text_Display supports all the cursor and carte stuff so that Fl_Text_Editor can use them, but to does not enable them, nor control them, by itself. |
There was some discussion of this here:
that covers the ground on this... A potential way of using this is shown in the attached file text-display-move-cursor.cxx
So... do we want to consider closing this STR?
[ Return to Bugs & Features | Post Text | Post File ]