Skip to content

Disable return key when no matches exist #4458

@iAmWillShepherd

Description

@iAmWillShepherd

When selecting a branch to compare there is a possibility of being given a search string that does not result in any matches.

No matches
before-enter

When in this state, the return key should be disabled. Although pressing return doesn't have any show-stopping effects, it puts the compare tab in a weird state.

Ahead/Behind tabs missing when in branch compare mode
after-enter

This is a UI behavior was not included in the main branch for this feature because it was not a part of the original feature.

For additional context, check out #4182.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions