diff options
Diffstat (limited to 'source/blender/src/toets.c')
-rw-r--r-- | source/blender/src/toets.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/src/toets.c b/source/blender/src/toets.c index 7a814b24cf9..7a683ed9bfc 100644 --- a/source/blender/src/toets.c +++ b/source/blender/src/toets.c @@ -829,7 +829,6 @@ int blenderqread(unsigned short event, short val) break; case UKEY: - if(textediting==0) { if(G.qual & LR_CTRLKEY) { if(okee("SAVE USER DEFAULTS")) { @@ -862,13 +861,14 @@ int blenderqread(unsigned short event, short val) break; case XKEY: - if(G.qual & LR_CTRLKEY) { - if(okee("ERASE ALL")) { - if( BIF_read_homefile()==0) error("No file ~/.B.blend"); + if(textspace==0) { + if(G.qual & LR_CTRLKEY) { + if(okee("ERASE ALL")) { + if( BIF_read_homefile()==0) error("No file ~/.B.blend"); + } + return 0; } - return 0; } - break; } |