Skip to content

Commit

Permalink
Little changes to FlxDebugger code completion. (#3222)
Browse files Browse the repository at this point in the history
* Update CompletionList.hx

* Update CompletionHandler.hx
  • Loading branch information
DetectiveBaldi authored Aug 6, 2024
1 parent 8406274 commit 64967e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flixel/system/debug/completion/CompletionHandler.hx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class CompletionHandler
var text = getTextUntilCaret();

// close completion so that enter works
if (text.endsWith(")") || text.endsWith("\"") || text.endsWith("'"))
if (text.endsWith(")") || text.endsWith("\"") || text.endsWith("'") || text.endsWith(";"))
{
completionList.close();
return;
Expand Down
2 changes: 1 addition & 1 deletion flixel/system/debug/completion/CompletionList.hx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class CompletionList extends Sprite
case Keyboard.UP:
updateIndices(-1);

case Keyboard.ENTER:
case Keyboard.ENTER | Keyboard.TAB:
if (completed != null)
completed(items[selectedIndex]);
close();
Expand Down

0 comments on commit 64967e3

Please sign in to comment.