[tuhopuu-cvs] CVS commit: tuhopuu3/source/blender/include interface.h tuhopuu3/source/blender/src interface.c interface_draw.c
Matt Ebb
matt at mke3.net
Fri Mar 25 02:06:13 CET 2005
broken (Matt Ebb) 2005/03/25 02:06:13 CET
Modified files:
tuhopuu3/source/blender/include interface.h
tuhopuu3/source/blender/src interface.c interface_draw.c
Log:
* Selection inside text/number entry fields
http://mke3.net/blender/interface/controls/textedit_selection02.png
A little afternoon/evening itch-scratching project, in between
other things. Number and text fields now have a concept of
selection, which was always missing before. Clicking to enter the
number/text field automatically selects all by default.
Here is the current functionality:
Mouse click: If inside the button, places the text cursor at the
clicked position. If outside the button, confirms/finishes editing
Mouse drag: Selects the text between the start and end point of the
drag.
Backspace: Deletes selected text, or backspaces a character
Shift Backspace: Deletes all, as before.
Delete: Deletes selected text or forward deletes a character
Shift LeftArrow: Extends the selection left
Shift RightArrow: Extends the selection right
LeftArrow: If there's a selection, move the cursor to the left edge
of the selection, otherwise move the cursor left a character.
RightArrow: If there's a selection, move the cursor to the right edge
of the selection, otherwise move the cursor right a character.
UpArrow/Home: Move the cursor to the beginning of the line
DownArrow/End: Move the cursor to the end of the line
Any ascii character: Delete the current selection and insert
the character
Todo:
* Copy and paste acting on selected text
* If it's easy enough, doubleclick to select a word
Revision Changes Path
1.2 +7 -2 tuhopuu3/source/blender/include/interface.h
<http://projects.blender.org/viewcvs/viewcvs.cgi/tuhopuu3/source/blender/include/interface.h.diff?r1=1.1&r2=1.2&cvsroot=tuhopuu>
1.16 +192 -30 tuhopuu3/source/blender/src/interface.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/tuhopuu3/source/blender/src/interface.c.diff?r1=1.15&r2=1.16&cvsroot=tuhopuu>
1.16 +46 -16 tuhopuu3/source/blender/src/interface_draw.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/tuhopuu3/source/blender/src/interface_draw.c.diff?r1=1.15&r2=1.16&cvsroot=tuhopuu>
More information about the tuhopuu-cvs
mailing list