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
path: root/source
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2014-12-02 15:33:29 +0300
committerJoshua Leung <aligorith@gmail.com>2014-12-05 02:12:03 +0300
commit030b694c7afe23e3e3a8d92efb32244d49d03efc (patch)
tree27f5af90f78ae3d2ae838e9fe20ae1b5988cf7e8 /source
parentd87ff752afe121a22ec6c69b97c25435bc210e57 (diff)
To make Strokes Edit Mode a bit more "solid", Tab key can be used to toggle out of it
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/gpencil/gpencil_ops.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/gpencil_ops.c b/source/blender/editors/gpencil/gpencil_ops.c
index 4af3e977255..072ef32a6eb 100644
--- a/source/blender/editors/gpencil/gpencil_ops.c
+++ b/source/blender/editors/gpencil/gpencil_ops.c
@@ -110,6 +110,12 @@ static void ed_keymap_gpencil_editing(wmKeyConfig *keyconf)
/* set poll callback - so that this keymap only gets enabled when stroke editmode is enabled */
keymap->poll = gp_stroke_editmode_poll;
+ /* ----------------------------------------------- */
+
+ /* Exit EditMode */
+ kmi = WM_keymap_add_item(keymap, "WM_OT_context_toggle", TABKEY, KM_PRESS, 0, 0);
+ RNA_string_set(kmi->ptr, "data_path", "gpencil_data.use_stroke_edit_mode");
+
/* Selection ------------------------------------- */
/* select all */
kmi = WM_keymap_add_item(keymap, "GPENCIL_OT_select_all", AKEY, KM_PRESS, 0, 0);