Skip to content

Focus fixes - #454

Merged
joshaber merged 25 commits into
masterfrom
focus-fixes
Oct 3, 2016
Merged

joshaber merged 25 commits into
masterfrom
focus-fixes

Conversation

@niik

@niik niik commented Sep 30, 2016 •

Copy link
Copy Markdown
Member
  • The checkbox inside a changes list item is no longer reachable by Tab
  • Put tabIndex on react virtualized grid instead, this was missed when moving to react-virtualized
  • Fix confusing focus logic for lists
  • CTRL+Tab now toggles between changes/history (although focus gets lost when moving between tabs so it's more of a one-time thing right now. This needs to be fixed but it can wait until a later PR)
  • Buttons are tab reachable by default so make sure that non-selectable list items don't act as buttons
  • Some initial focus outline styling. This is very basic, me and @donokuda will try to put this on the agenda for the design meet next week.

@niik niik changed the title [WIP] Focus fixes Focus fixes Oct 3, 2016
@niik

niik commented Oct 3, 2016

Copy link
Copy Markdown
Member Author

This is ready for review

@joshaber joshaber self-assigned this Oct 3, 2016

@joshaber joshaber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✨

Just a couple nits.

Comment thread app/src/ui/changes/changed-file.tsx Outdated
<Checkbox value={this.checkboxValue} onChange={event => this.handleChange(event)}/>

<Checkbox
// The checkboxes doesn't need to be tab reachable since we emulate

This comment was marked as spam.

Comment thread app/src/ui/diff/index.tsx
cursorBlinkRate: -1,
lineWrapping: localStorage.getItem('soft-wrap-is-best-wrap') ? true : false,
// Make sure CodeMirror doesn't capture Tab and thus destroy tab navigation
extraKeys: { Tab: false },

This comment was marked as spam.

Comment thread app/styles/ui/_list.scss Outdated
@@ -1,5 +1,6 @@
@include win32-context {
.list {
flex-grow: 1;

This comment was marked as spam.

@niik

niik commented Oct 3, 2016

Copy link
Copy Markdown
Member Author

⌨️

@joshaber
joshaber merged commit 69589f1 into master Oct 3, 2016
@joshaber
joshaber deleted the focus-fixes branch October 3, 2016 14:46
joshaber added a commit that referenced this pull request Oct 3, 2016
This was removed in #454 but seems to be necessary for lists. Otherwise they're always size zero.
@joshaber joshaber mentioned this pull request Oct 3, 2016
mijiang168 pushed a commit to mijiang168/desktop that referenced this pull request Apr 22, 2022
mijiang168 pushed a commit to mijiang168/desktop that referenced this pull request Apr 22, 2022
yasuking0304 pushed a commit to yasuking0304/desktop that referenced this pull request Jan 22, 2023
yasuking0304 pushed a commit to yasuking0304/desktop that referenced this pull request Jan 22, 2023
yasuking0304 pushed a commit to yasuking0304/desktop that referenced this pull request Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants