-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor: handle home/end presses through key manager #19955
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8d20b5d to
4d37216
Compare
devversion
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. nice cleanup
|
|
||
| const event = createKeyboardEvent('keydown', END); | ||
| Object.defineProperty(event, 'shiftKey', { get: () => true }); | ||
| Object.defineProperty(event, 'altKey', { get: () => true }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just for context: We had to change this test because previously we didn't allow HOME/END with any modifier keys pressed. Now though we will start supporting those keys with the SHIFT modifier key, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, exactly. I did it since, from what I can tell, home and end don't do much with a modifier anyway.
jelbourn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@crisbeto Seems like this PR has some merge conflicts |
|
Rebased. |
4d37216 to
5f8ccca
Compare
5f8ccca to
a9d52ca
Compare
Based on top of angular#19834, changes the places where we were handling home/end to go through the key manager. Also allows `withHomeAndEnd` to be turned off, similarly to what we're doing with the other methods.
a9d52ca to
23432bd
Compare
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Based on top of #19834, changes the places where we were handling home/end to go through the key manager.
Also allows
withHomeAndEndto be turned off, similarly to what we're doing with the other methods.cc @vanessanschmitt