robotframework / RIDE

Test data editor for Robot Framework
Apache License 2.0
951 stars 375 forks source link

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

Open ZDabrowski opened 1 week ago

ZDabrowski commented 1 week ago

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