From efbef794e02a76d6a0557a8cba0baaa5a0313d73 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Mon, 27 Jan 2020 17:15:29 -0800 Subject: [PATCH] Fixed unindenting selection --- IDE/src/ui/SourceEditWidgetContent.bf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/IDE/src/ui/SourceEditWidgetContent.bf b/IDE/src/ui/SourceEditWidgetContent.bf index 7d98ab3e..64aa2b0e 100644 --- a/IDE/src/ui/SourceEditWidgetContent.bf +++ b/IDE/src/ui/SourceEditWidgetContent.bf @@ -2079,9 +2079,7 @@ namespace IDE.ui return; } - if ((keyChar == '\t') && (mWidgetWindow.IsKeyDown(.Shift))) - return; - + bool isTab = (keyChar == '\t') && (!mWidgetWindow.IsKeyDown(.Shift)); if ((gApp.mSymbolReferenceHelper != null) && (gApp.mSymbolReferenceHelper.IsRenaming)) { if ((keyChar == '\r') || (keyChar == '\n')) @@ -2106,7 +2104,7 @@ namespace IDE.ui int32 startRevision = mData.mCurTextVersionId; - bool doAutocomplete = (keyChar == '\t'); + bool doAutocomplete = (keyChar == '\t') && (!mWidgetWindow.IsKeyDown(.Shift)); if ((mAutoComplete != null) && (keyChar == '\r') && ((!mIsMultiline) || (mAutoComplete.mIsUserRequested))) doAutocomplete = true;