Skip to content

Commit

Permalink
Added new line for updating suggestionSelection
Browse files Browse the repository at this point in the history
  • Loading branch information
Ponlawat W. committed Aug 23, 2023
1 parent 2237c2d commit f2bf849
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
if (
(event.key === ' ') ||
(event.key === 'Enter') ||
(event.key === 'Backspace' && suggestionSelectionStart > selectionStart)
) {
suggestionSelectionStart = selectionStart;
Expand Down

0 comments on commit f2bf849

Please sign in to comment.