Skip to content
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

Save the highlighted item when switching tab #45288

Merged
merged 2 commits into from
Oct 20, 2017

Conversation

GuillaumeGomez
Copy link
Member

@GuillaumeGomez GuillaumeGomez commented Oct 14, 2017

To be merged after #45281.

r? @rust-lang/docs

@rust-highfive
Copy link
Collaborator

Some changes occurred in HTML/CSS.

cc @GuillaumeGomez

@rust-highfive
Copy link
Collaborator

r? @QuietMisdreavus

(rust_highfive has picked a reviewer for you, use r? to override)

@kennytm kennytm added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Oct 14, 2017
@@ -696,39 +703,52 @@
var search_input = document.getElementsByClassName('search-input')[0];
search_input.onkeydown = null;
search_input.onkeydown = function(e) {
var actives = [];
var actives = [[], [], []];
var current = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

What does this current store? Is it the same as the currentTab from the outer scope?

Copy link
Member Author

@GuillaumeGomez GuillaumeGomez Oct 14, 2017

Choose a reason for hiding this comment

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

No, it's a local one when we're iterating over tabs. I'll update the variable's name.

@@ -696,39 +703,52 @@
var search_input = document.getElementsByClassName('search-input')[0];
search_input.onkeydown = null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is that line still required?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope. Removing it. Thanks for spotting it!

Copy link
Contributor

@dns2utf8 dns2utf8 left a comment

Choose a reason for hiding this comment

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

Looks good to me. Thank you 👍

@kennytm kennytm added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Oct 15, 2017
@QuietMisdreavus
Copy link
Member

Looks good! r=me when #45281 hits. This seems to be a superset of that PR, so hopefully it won't make a merge conflict.

@GuillaumeGomez
Copy link
Member Author

@bors: r=QuietMisdreavus

@bors
Copy link
Contributor

bors commented Oct 19, 2017

📌 Commit f442326 has been approved by QuietMisdreavus

@bors
Copy link
Contributor

bors commented Oct 19, 2017

⌛ Testing commit f442326 with merge a651106...

bors added a commit that referenced this pull request Oct 19, 2017
Save the highlighted item when switching tab

To be merged after #45281.

r? @rust-lang/docs
@bors
Copy link
Contributor

bors commented Oct 20, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: QuietMisdreavus
Pushing a651106 to master...

@bors bors merged commit f442326 into rust-lang:master Oct 20, 2017
@GuillaumeGomez GuillaumeGomez deleted the tab-key-binding branch October 20, 2017 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants