diff options
author | Kent Mein <mein@cs.umn.edu> | 2002-12-21 13:14:03 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2002-12-21 13:14:03 +0300 |
commit | 3bc9dda7992cf69ab6e242e9ed2b22e659a4a1c4 (patch) | |
tree | fb28703183b587002bfcc52269ee574c18b3f669 | |
parent | 9bb91f9e5720f831a563ec402e062fd386e4ea2c (diff) |
added the DELKEY stuff...
else if(dev==DELKEY) {
if(but->pos>=0 && but->pos<strlen(str)) {
for(x=but->pos; x<=strlen(str); x++)
str[x]= str[x+1];
str[--len]='\0';
dodraw= 1;
}
}
Kent
-rw-r--r-- | source/blender/src/interface.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c index a777ae11953..8989b9c4f85 100644 --- a/source/blender/src/interface.c +++ b/source/blender/src/interface.c @@ -1860,6 +1860,14 @@ static int ui_do_but_TEX(uiBut *but) else if(dev==PADENTER || dev==RETKEY) { break; } + else if(dev==DELKEY) { + if(but->pos>=0 && but->pos<strlen(str)) { + for(x=but->pos; x<=strlen(str); x++) + str[x]= str[x+1]; + str[--len]='\0'; + dodraw= 1; + } + } else if(dev==BACKSPACEKEY) { if(len!=0) { if(get_qual() & LR_SHIFTKEY) { |