mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Allow Enter to insert
This commit is contained in:
parent
5540a13a80
commit
4cb9791845
1 changed files with 3 additions and 3 deletions
|
@ -2075,7 +2075,7 @@ namespace IDE.ui
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isTab = (keyChar == '\t') && (!mWidgetWindow.IsKeyDown(.Shift));
|
bool isCompletionChar = ((keyChar == '\t') || (keyChar == '\r')) && (!mWidgetWindow.IsKeyDown(.Shift));
|
||||||
if ((gApp.mSymbolReferenceHelper != null) && (gApp.mSymbolReferenceHelper.IsRenaming))
|
if ((gApp.mSymbolReferenceHelper != null) && (gApp.mSymbolReferenceHelper.IsRenaming))
|
||||||
{
|
{
|
||||||
if ((keyChar == '\r') || (keyChar == '\n'))
|
if ((keyChar == '\r') || (keyChar == '\n'))
|
||||||
|
@ -2100,7 +2100,7 @@ namespace IDE.ui
|
||||||
|
|
||||||
int32 startRevision = mData.mCurTextVersionId;
|
int32 startRevision = mData.mCurTextVersionId;
|
||||||
|
|
||||||
bool doAutocomplete = isTab;
|
bool doAutocomplete = isCompletionChar;
|
||||||
if ((mAutoComplete != null) && (keyChar == '\r') &&
|
if ((mAutoComplete != null) && (keyChar == '\r') &&
|
||||||
((!mIsMultiline) || (mAutoComplete.mIsUserRequested)))
|
((!mIsMultiline) || (mAutoComplete.mIsUserRequested)))
|
||||||
doAutocomplete = true;
|
doAutocomplete = true;
|
||||||
|
@ -2113,7 +2113,7 @@ namespace IDE.ui
|
||||||
|
|
||||||
if (gApp.mSettings.mEditorSettings.mAutoCompleteRequireTab)
|
if (gApp.mSettings.mEditorSettings.mAutoCompleteRequireTab)
|
||||||
{
|
{
|
||||||
doAutocomplete = isTab;
|
doAutocomplete = isCompletionChar;
|
||||||
if (keyChar == '\r')
|
if (keyChar == '\r')
|
||||||
{
|
{
|
||||||
if (mAutoComplete != null)
|
if (mAutoComplete != null)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue