mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-30 05:15:59 +02:00
Added option for autocomplete on enter
This commit is contained in:
parent
6c65993401
commit
5e5084886c
3 changed files with 9 additions and 1 deletions
|
@ -78,6 +78,7 @@ namespace IDE.ui
|
|||
AddPropertiesItem(category, "UI Scale", "mUIScale");
|
||||
AddPropertiesItem(category, "Autocomplete", "mAutoCompleteShowKind");
|
||||
AddPropertiesItem(category, "Autocomplete Require Tab", "mAutoCompleteRequireTab");
|
||||
AddPropertiesItem(category, "Autocomplete on Enter", "mAutoCompleteOnEnter");
|
||||
AddPropertiesItem(category, "Autocomplete Show Documentation", "mAutoCompleteShowDocumentation");
|
||||
AddPropertiesItem(category, "Show Locator Animation", "mShowLocatorAnim");
|
||||
AddPropertiesItem(category, "Hilite Symbol at Cursor", "mHiliteCursorReferences");
|
||||
|
|
|
@ -2091,7 +2091,11 @@ namespace IDE.ui
|
|||
return;
|
||||
}
|
||||
|
||||
bool isCompletionChar = ((keyChar == '\t') || (keyChar == '\r')) && (!mWidgetWindow.IsKeyDown(.Shift));
|
||||
bool isCompletionChar =
|
||||
((keyChar == '\t') ||
|
||||
((keyChar == '\r') && (gApp.mSettings.mEditorSettings.mAutoCompleteOnEnter))) &&
|
||||
(!mWidgetWindow.IsKeyDown(.Shift));
|
||||
|
||||
if ((gApp.mSymbolReferenceHelper != null) && (gApp.mSymbolReferenceHelper.IsRenaming))
|
||||
{
|
||||
if ((keyChar == '\r') || (keyChar == '\n'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue