Skip to content

Commit dc0ec8a

Browse files
Fixed Cut (Ctrl-X) in cell content edit in Grid Editor
1 parent cbd04cf commit dc0ec8a

File tree

9 files changed

+264
-255
lines changed

9 files changed

+264
-255
lines changed

CHANGELOG.adoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ All notable changes to this project will be documented in this file.
66
The format is based on http://keepachangelog.com/en/1.0.0/[Keep a Changelog]
77
and this project adheres to http://semver.org/spec/v2.0.0.html[Semantic Versioning].
88

9-
// == https://github.com/robotframework/RIDE[Unreleased]
9+
== https://github.com/robotframework/RIDE[Unreleased]
10+
11+
=== Fixed
12+
- Fixed Cut (Ctrl-X) when editing the content of a cell in Grid Editor, before was deleting all content.
13+
1014

1115
== https://github.com/robotframework/RIDE/blob/master/doc/releasenotes/ride-2.2.rst[2.2] - 2025-10-05
1216

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Likewise, the current version of wxPython, is 4.2.3, but RIDE is known to work w
4646

4747
`pip install -U robotframework-ride`
4848

49-
(3.8 <= python <= 3.14) Install current development version (**2.2**) with:
49+
(3.8 <= python <= 3.14) Install current development version (**2.2.1dev1**) with:
5050

5151
`pip install -U https://github.com/robotframework/RIDE/archive/develop.zip`
5252

src/robotide/application/CHANGELOG.html

Lines changed: 68 additions & 66 deletions
Large diffs are not rendered by default.

src/robotide/application/releasenotes.py

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -175,23 +175,7 @@ def set_content(self, html_win, content):
175175
</ul>
176176
<p><strong>New Features and Fixes Highlights</strong></p>
177177
<ul class="simple">
178-
<li>Fixed duplicated resources in Tree (Project Explorer).</li>
179-
<li>Added Project Settings concept. The Project Settings is a file named <b>ride_settings.cfg</b> inside a directory
180-
named <b>.robot</b> located in the Test Suite directory.</li>
181-
<li>Fixed crash when renaming test cases names on Tree (Project Explorer), by cancelling with Escape or by adding a Space
182-
in the end.</li>
183-
<li>Fixed missing text colorization in suites and test settings on Grid Editor.</li>
184-
<li>Restored init and main scripts and texteditor, because some changes in Grid Editor were not being saved in Text
185-
Editor and would be lost.</li>
186-
<li>Fix faulty cell editor in settings of Grid Editor which would prevent to change to Text Editor and Run tabs.</li>
187-
<li>Added indication of <b>private</b> keywords in Grid Editor, keywords will show in <em>Italic</em>, and with error
188-
background, when they are used outside of Keywords section, or from different files.</li>
189-
<li>Added indication of <b>private</b> keywords in Details pop-up for keywords with tag <b>robot:private</b> or name starting
190-
with underscore, <b>'_'</b> in Grid Editor.</li>
191-
<li>Modified the action of key TAB when selecting from auto-suggestions list in Grid Editor. Pressing TAB, selects the
192-
item and continues in cell editor.</li>
193-
<li>Fix cursor position when editing cells in Grid Editor.</li>
194-
<li>Added parsing of option <b>--name</b> or <b>-N</b> and <b>Name</b> setting, to allow running tests with them set.</li>
178+
<li>Fixed Cut (Ctrl-X) when editing the content of a cell in Grid Editor, before was deleting all content.</li>
195179
</ul>
196180
<!-- <p>We hope to implement or complete features and make fixes on next major version 2.1 (in mid Autumm of 2024).</p>
197181
-->
@@ -246,13 +230,13 @@ def set_content(self, html_win, content):
246230
<pre class="literal-block">python -m robotide.postinstall -install</pre>
247231
<p>or</p>
248232
<pre class="literal-block">ride_postinstall.py -install</pre>
249-
<p>RIDE {VERSION} was released on 05/October/2025.</p>
250-
233+
<p>RIDE {VERSION} was released on 09/October/2025.</p>
234+
<!--
251235
<br/>
252236
<h3>Celebrate the bank holiday, 5th October, Implantation of the Republic in Portugal</h3>
253237
<h4>Happy 115th bithday! Long live the Republic!</h4>
254238
<h3 align='center'>🇵🇹</h3>
255-
<!-- <br/>
239+
<br/>
256240
<h3>May The Fourth Be With You!</h3>
257241
<h3>Celebrate the bank holiday, 10th June, Day of Portugal, Portuguese Communities and Camões!!</h3>
258242
<h3 align='center'>🇵🇹</h3>

src/robotide/editor/gridbase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,10 @@ def select(self, row, column):
129129
self.MakeCellVisible(row, column)
130130

131131
def copy(self):
132-
print("DEBUG: GridBase copy() called\n")
132+
# print("DEBUG: GridBase copy() called\n")
133133
self._clipboard_handler.clear()
134134
data = self._clipboard_handler.clipboard_content()
135-
print(f"DEBUG: GridBase copy() clipboard_content =={data}\n")
135+
# print(f"DEBUG: GridBase copy() clipboard_content =={data}\n")
136136
self._clipboard_handler.copy()
137137

138138
def cut(self):

src/robotide/editor/kweditor.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,8 +676,9 @@ def on_copy(self, event=None):
676676

677677
# DEBUG @requires_focus
678678
def on_cut(self, event=None):
679-
self.cut()
680-
self.on_delete(event)
679+
if not self.IsCellEditControlShown():
680+
self.cut()
681+
self.on_delete(event)
681682

682683
def on_delete(self, event=None):
683684
__ = event
51 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)