Fix move rows (#2061)
Fix move rows (#2061)

* DEBUG actions

* More debug prints, set cur pos.

* More debug. Better but not ready.

* Cursor stays in position but does not activate. Must Save twice, or Apply Changes.

* Change Grid Editor to allow Alt-Up/Down moves. Changes MacOS command. MUST TEST ON MacOS.

* More DEBUG. Control sets Dirty. Line cursor is wrongly reported.

* More attempts to refresh

* Almost there

* Ctrl-S and Apply Changes in Text Editor keep the same Cursor Position (some glitches still).

* Improves Move up and Move down cells

* Failing 3 tests. More DEBUG

* Final fixes for MoveUp/MoveDown Cells when are FOR/END blocks

* More DEBUG. Moves just one row, but cell selection changes

* Add guard for bdeing run on MacOS. OK on Linux.

* Fixes #2048

HelioGuilherme66/RIDE,HelioGuilherme66/RIDE,HelioGuilherme66/RIDE,HelioGuilherme66/RIDE,robotframework/RIDE,robotframework/RIDE,robotframework/RIDE,robotframework/RIDE