Skip to content

[Grid Editor] Subsequent shortcut key action works only on the top row of the selection #2815

Closed
@ZDabrowski

Description

@ZDabrowski

A first shortcut key operation on a multiple cells' selection works properly.
However, any subsequent operation impacts only the top row of the selection.
It can be observed when using CTRL+SHIFT+I, CTRL+SHIFT+D, but also ALT+Up/ALT+Down.

Environment
Python 3.10.12
wxPython 4.2.1
robotframework 6.0.2
robotframework-ride 2.1.dev53
Ubuntu 22.04.4 LTS

Steps

  1. Select multiple cells
    obraz
  2. Press shortcut CTRL+SHIFT+I to insert cells. (OK)
    obraz
  3. Press CTRL+SHIFT+I again. The action only occurred on the top row of the selection.
    obraz
  4. Select multiple cells again. (refresh selection)
  5. Press shortcut CTRL+SHIFT+D to remove multiple cells. (OK)
    obraz
  6. Press shortcut CTRL+SHIFT+I to insert cells. The action only occurred on the top row of the selection.
    obraz

ALT+Up scenario:

  1. Select cells
    obraz
  2. Press ALT+Up (OK)
    obraz
  3. Press ALT+Up again. Only "4th line" moved up.
    obraz

Additional info
It looks like an active selection persist in cache only for one action.

*** Test Cases ***
Test Rows
    Log    1st line
    Log    2nd line
    Log    3rd line
    Log    4th line

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugMalfunctions that should be fixed to comply with the expected behaviorfixedIssues that have been fixed and can be closed alreadyprio-highCritical to user experience

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions