Skip to content

The Reference and Description in Add/Remove Refrence dialogue does not match selection when scrolling with arrow keys.  #5554

@mccordscvs

Description

@mccordscvs

###Rubberduck version information

Version 2.5.0.5524
OS: Microsoft Windows NT 10.0.18362.0, x64
Host Product: Microsoft Office 2016 x64
Host Version: 16.0.5026.1000
Host Executable: EXCEL.EXE

Description
The short description and path at the bottom of the Add/Remove Reference dialogue is not in sync with the item selected in the list when scrolling with the arrow keys.

To Reproduce

  • Open the RubberDuck Add/Remove references Dialogue Box.
  • Select any item in the list except first item with the mouse.
  • Notice that the description is correct when selecting with a mouse.
  • Now select the first item: The description changes as it should.
  • Now press the down arrow 1 time. Notice that the description did not change for the first mouse press.
  • Press the down arrow again now the description changes but it is behind by one reference. Description is -1.
  • Now reverse direction and press the up arrow.
  • Observe that it selects the previous reference as expected. However, the description moves down one reference from its previous position. This makes the description +1 when scrolling up.
  • Pressing the up arrow again start moving the reference and description in the same direction but still with the offset.
  • Press the down arrow again observe the same behavior as when changing direction before. The first keypress when changing direction keeps advancing the description in the old direction.
  • Keep pressing the up arrow until the selected item is the first item.
  • Now press the up arrow 1 more time. Note that the item lost focus.
  • Now press the down arrow and the selection will no longer move.
  • **Note that both the left and right list box show the same behavior.

Expected behavior
The reference and description should be in sync. And when ether the top item or bottom item is scrolled past to with arrow keys that item should not go out of focus.

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIdentifies work items for known bugsdifficulty-01-ducklingIssue where no particularly involved knowledge of the internal API is needed.good first issueWant to contribute? That's a good place to start!up-for-grabsUse this label in conjunction with a difficulty level label, e.g. difficulty-02-duckyuser-experienceIssue relates to user experience (workflow, flexibility, customisation)user-interfaceThis issue explicitly relates to the visible interface of Rubberduck.wpfIssue is easier to resolve with knowledge of WPF/XAML

    Type

    No type

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions