Skip to content

[Grid Editor] A single CTRL + Z operation reverses the last two actions #2837

@ZDabrowski

Description

@ZDabrowski

When we press CTRL + Z, the last two actions on a Grid Editor will be undone at once.

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

Steps
0. Code example
obraz

  1. Insert three cels. 3x CTRL + SHIFT + I (OK)
    obraz
  2. Undo action by pressing 1x CTRL + Z hotkey
    obraz
  3. Add two rows, 2x CTRL + I
    obraz
  4. Undo action by pressing 1x CTRL + Z hotkey
    obraz
  5. Add a Comment (row 5)
    obraz
  6. Undo action by pressing 1xCTRL + Z hotkey (two last actions: (5.) and (1.) reversed)
    obraz
  7. Delete two rows, 2x CTRL + D
    obraz
  8. Undo action by pressing 1xCTRL + Z hotkey
    obraz

Additional info
In the other hand, when pressing CTRL+Y (redo hotkey) multiple times, each subsequent action will be restored one at a time - as expected.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CURRENT DEVELOPMENTbugMalfunctions that should be fixed to comply with the expected behavioros: linuxIssues detected and reproducible only on Linuxprio-mediumBehaving incorrectly, but still somewhat usable

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions