Skip to content

when filtering, check on enter for items before selecting first match - #995

Merged
iAmWillShepherd merged 1 commit into
masterfrom
block-enter-when-no-repos-visible
Mar 2, 2017
Merged

iAmWillShepherd merged 1 commit into
masterfrom
block-enter-when-no-repos-visible

Conversation

@shiftkey

@shiftkey shiftkey commented Mar 1, 2017 •

Copy link
Copy Markdown
Member

Fixes #993

There's a broken assumption in List.nextSelectableRow that we always have have a non-empty list of items (and the potential to recurse forever) but I'll address that in a separate PR.

EDIT: see #996 for underlying issue

} else if (event.key === 'Enter') {
this.onRowClick(list.nextSelectableRow('down', 0))
// no repositories currently displayed, bail out
if (!this.state.rows.length) {

This comment was marked as spam.

This comment was marked as spam.

@iAmWillShepherd
iAmWillShepherd merged commit 6418d6c into master Mar 2, 2017
@iAmWillShepherd
iAmWillShepherd deleted the block-enter-when-no-repos-visible branch March 2, 2017 04:29
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.

3 participants