diff options
author | Alexander Ewering <blender@instinctive.de> | 2005-08-14 00:44:57 +0400 |
---|---|---|
committer | Alexander Ewering <blender@instinctive.de> | 2005-08-14 00:44:57 +0400 |
commit | 5f61dc89ba31bf7c6d27f2e4f870cb65e58d15e4 (patch) | |
tree | ae29294409846677a2198116f7aec3a7d8582a1d /source/blender/src/editfont.c | |
parent | 109950ada4f58f3b45907075fa9eccb3038a201a (diff) |
Add CTRL-Backspace to delete all text in textediting.
Diffstat (limited to 'source/blender/src/editfont.c')
-rw-r--r-- | source/blender/src/editfont.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/src/editfont.c b/source/blender/src/editfont.c index 56ac38add2e..a1253007d3d 100644 --- a/source/blender/src/editfont.c +++ b/source/blender/src/editfont.c @@ -754,6 +754,11 @@ void do_textedit(unsigned short event, short val, char _ascii) if(G.qual & LR_ALTKEY) { if(cu->pos>0) accentcode= 1; } + else if (G.qual & LR_CTRLKEY) { + cu->len = cu->pos = 0; + textbuf[0]= 0; + doit= 1; + } else { if (killselection(0)==0) { if (cu->pos>0) { |