Skip to content

Fix caret position after inserting completion - #3835

Merged
niik merged 7 commits into
desktop:masterfrom
carlrosell:master
Feb 27, 2018
Merged

niik merged 7 commits into
desktop:masterfrom
carlrosell:master

Conversation

@carlrosell

Copy link
Copy Markdown
Contributor

Fixes: #3834.

)

const textWithAutoCompleteText =
originalText.substr(0, range.start - 1) + autoCompleteText + ' '

This comment was marked as spam.

This comment was marked as spam.

@iAmWillShepherd iAmWillShepherd added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jan 22, 2018
@shiftkey
shiftkey self-requested a review January 30, 2018 02:09
}

// This is pretty gross. Clicking on the list moves focus off the text area.
// Immediately moving focus back doesn't work. Gotta wait a runloop I guess?

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@shiftkey shiftkey self-assigned this Jan 30, 2018
@shiftkey
shiftkey requested a review from niik February 3, 2018 23:15
@shiftkey shiftkey removed their assignment Feb 7, 2018
}

// This is pretty gross. Clicking on the list moves focus off the text area.
// Immediately moving focus back doesn't work. Gotta wait a runloop I guess?

This comment was marked as spam.

@shiftkey shiftkey self-assigned this Feb 12, 2018
@shiftkey

Copy link
Copy Markdown
Member

@carlrosell I've added some code to differentiate between keyboard-based autocomplete and mouseclick-based autocomplete, and tidied it up. Feel free to test this and ensure you're happy with the changes, and we can get @niik to sign off on it.

@shiftkey shiftkey assigned niik and unassigned shiftkey Feb 12, 2018
@carlrosell

Copy link
Copy Markdown
Contributor Author

Hi @shiftkey and @niik and sorry for my late response. The whole family got the flu and life been chaotic the last two weeks 😅. The changes look good to me and thanks for keeping this alive 👍

@shiftkey shiftkey added this to the 1.1.x milestone Feb 22, 2018
@niik
niik merged commit a50660f into desktop:master Feb 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants