Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

For #6354: Tabbing between points in BezierEditor #6576

Merged
merged 5 commits into from
Jan 25, 2014

Conversation

marcelgerber
Copy link
Contributor

@redmunds: For #6354
With this PR, you can use the Tab key to switch between the two points of the Bezier editor.
It makes the BezierEditor completely keyboard-compatible.

Includes a german string change @couzteau

@ghost ghost assigned redmunds Jan 18, 2014
@redmunds
Copy link
Contributor

Thanks. We're trying to finish Sprint 36, so not sure when I'll get to review this.

@marcelgerber
Copy link
Contributor Author

No problem.

} else {
$(".P1").focus();
}
e.preventDefault();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block should return true; to indicate that key was handled by this function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just fixed this.

@redmunds
Copy link
Contributor

Looks and works good. Just 1 comment.

// Switch between the two points by tabbing
if ($(e.target).hasClass("P1")) {
$(".P2").focus();
} else {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we make sure (else if ($(e.target).hasClass("P2"))) that this is really P2 here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The way it is now, if focus is anywhere else, then it will return to P1. If you make that change, and focus goes somewhere else, it will never come back to the P1/P2 elements with Tab key. So, I think this is OK.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright.
(But normally focus shouldn't go anywhere else)

@marcelgerber
Copy link
Contributor Author

Just changed the string to use "Tab" instead of the unicode char ↹

@redmunds
Copy link
Contributor

Looks good. Thanks! Merging.

redmunds added a commit that referenced this pull request Jan 25, 2014
For #6354: Tabbing between points in BezierEditor
@redmunds redmunds merged commit 68e793a into adobe:master Jan 25, 2014
@marcelgerber marcelgerber deleted the bezier-point-tab branch January 25, 2014 01:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants