Skip to content

fix(window): set enter key as non-printable char - #20727

Closed
kwonoj wants to merge 1 commit into
servo:masterfrom
kwonoj:fix-append-cr
Closed

kwonoj wants to merge 1 commit into
servo:masterfrom
kwonoj:fix-append-cr

Conversation

@kwonoj

@kwonoj kwonoj commented May 1, 2018 •

Copy link
Copy Markdown
Contributor

Mostly for discussion around #20630, #20726.
If this PR's accepted & merged, it may serve as temporal workaround only.

This PR changes behavior of window to consider ENTER key as non-printable, let document does not appends redundant carriage return when press enter on textinput field. But this PR instead omits keypress event on Enter like

image

while other browsers does emit
image

makes me feel proper fix would be something like #20726, revise flow to send over keyevent to document itself.


  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

@highfive

highfive commented May 1, 2018

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label May 1, 2018
@paulrouget

Copy link
Copy Markdown
Contributor

Having proper IME support would help solve these kind of issues.

@bors-servo

Copy link
Copy Markdown
Contributor

☔ The latest upstream changes (presumably #21676) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Sep 12, 2018
@kwonoj

kwonoj commented Sep 12, 2018

Copy link
Copy Markdown
Contributor Author

Let me close this as upstream has changed.

@kwonoj kwonoj closed this Sep 12, 2018
@kwonoj
kwonoj deleted the fix-append-cr branch September 12, 2018 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed. S-needs-rebase There are merge conflict errors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hitting enter in a text box adds a space

5 participants