[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [34935] trunk/blender/source/blender/ editors/space_text/space_text.c: Spall text space usability:

Sergey Sharybin g.ulairi at gmail.com
Thu Feb 17 16:24:44 CET 2011


Revision: 34935
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=34935
Author:   nazgul
Date:     2011-02-17 15:24:43 +0000 (Thu, 17 Feb 2011)
Log Message:
-----------
Spall text space usability:
Use shift-del to cut, ctrl-ins to copy and shift-ins to paste

Most of editors support this hotkeys and it's annoying when you
trying to use them in text space.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_text/space_text.c

Modified: trunk/blender/source/blender/editors/space_text/space_text.c
===================================================================
--- trunk/blender/source/blender/editors/space_text/space_text.c	2011-02-17 13:46:17 UTC (rev 34934)
+++ trunk/blender/source/blender/editors/space_text/space_text.c	2011-02-17 15:24:43 UTC (rev 34935)
@@ -278,6 +278,10 @@
 	WM_keymap_add_item(keymap, "TEXT_OT_copy", CKEY, KM_PRESS, KM_CTRL, 0);
 	WM_keymap_add_item(keymap, "TEXT_OT_paste", VKEY, KM_PRESS, KM_CTRL, 0);
 
+	WM_keymap_add_item(keymap, "TEXT_OT_cut", DELKEY, KM_PRESS, KM_SHIFT, 0);
+	WM_keymap_add_item(keymap, "TEXT_OT_copy", INSERTKEY, KM_PRESS, KM_CTRL, 0);
+	WM_keymap_add_item(keymap, "TEXT_OT_paste", INSERTKEY, KM_PRESS, KM_SHIFT, 0);
+
 	if(U.uiflag & USER_MMB_PASTE) // XXX not dynamic
 		RNA_boolean_set(WM_keymap_add_item(keymap, "TEXT_OT_paste", MIDDLEMOUSE, KM_PRESS, 0, 0)->ptr, "selection", 1);
 




More information about the Bf-blender-cvs mailing list