Skip to content

focus_below binding works inconsistently #1539

Closed
@strogonoff

Description

Describe the bug

Key assigned to focus_below works correctly on commit details screen, but on status screen it does not have desired effect (which would presumably be “focus the staging pane, if current focus is in unstaged changes pane”).

Same happens with focus_above, however focus_left or focus_right work correctly.

To Reproduce

My key configuration is this (but I found it works with any bindings):

focus_right: Some(( code: Char('l'), modifiers: ( bits: 2,),)),
focus_left: Some(( code: Char('h'), modifiers: ( bits: 2,),)),
focus_above: Some(( code: Char('k'), modifiers: ( bits: 2,),)),
focus_below: Some(( code: Char('j'), modifiers: ( bits: 2,),)),
  1. Open gitui (defaults to status screen, focusing unstaged change list)
  2. Hit ctrl+j
  3. Nothing happens

Expected behavior

  1. Takes focus to staging area

Screenshots

Context (please complete the following information):

  • Terminal: Alacritty
  • OS/Distro + Version: macOS 13.2
  • GitUI Version 0.22.1
  • Rust version: rustc 1.67.0 fc594f156

Additional context

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions