Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ebb <matt@mke3.net>2006-05-31 08:24:03 +0400
committerMatt Ebb <matt@mke3.net>2006-05-31 08:24:03 +0400
commit90453ef98a71f6336538478eaddda35f297c5a51 (patch)
treecb089e91b72000e2fbacfd0fc1f95f282ddd6d4a /source/blender/src/drawtext.c
parent68ca6eac615375bd09d0af6374e575af417ce585 (diff)
* Added Mac OS X text editing shortcuts Command LeftArrow and Command RightArrow as equivalents for Home and End in Blender's text editor.
Diffstat (limited to 'source/blender/src/drawtext.c')
-rw-r--r--source/blender/src/drawtext.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source/blender/src/drawtext.c b/source/blender/src/drawtext.c
index a0a37de732e..4cce31ff7a3 100644
--- a/source/blender/src/drawtext.c
+++ b/source/blender/src/drawtext.c
@@ -1817,13 +1817,19 @@ void winqreadtextspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
pop_space_text(st);
break;
case LEFTARROWKEY:
- txt_move_left(text, G.qual & LR_SHIFTKEY);
+ if (G.qual & LR_COMMANDKEY)
+ txt_move_bol(text, G.qual & LR_SHIFTKEY);
+ else
+ txt_move_left(text, G.qual & LR_SHIFTKEY);
set_tabs(text);
do_draw= 1;
pop_space_text(st);
break;
case RIGHTARROWKEY:
- txt_move_right(text, G.qual & LR_SHIFTKEY);
+ if (G.qual & LR_COMMANDKEY)
+ txt_move_eol(text, G.qual & LR_SHIFTKEY);
+ else
+ txt_move_right(text, G.qual & LR_SHIFTKEY);
set_tabs(text);
do_draw= 1;
pop_space_text(st);