Skip to content

Commit

Permalink
Fix text selection in Text Editor, when autocomplete active (#2836)
Browse files Browse the repository at this point in the history
  • Loading branch information
HelioGuilherme66 committed Jul 29, 2024
1 parent c08a642 commit bcb61b8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ See the https://github.com/robotframework/RIDE/blob/master/doc/releasenotes/ride
**Version https://github.com/robotframework/RIDE/tree/release/1.7.4.2[1.7.4.2] was the last release supporting Python 2.7**


**The current development version is based on 2.0.8.1, supports Python from 3.8 up to 3.12 (09th February 2024).**
**The current development version is based on 2.1a3, supports Python from 3.8 up to 3.12 (29th July 2024).**

Currently the unit tests are tested on Python 3.10, and 3.12 (which is the recommended version).
Likewise, the current version of wxPython, is 4.2.1, but RIDE is known to work with 4.0.7 and 4.1.1 versions.
Expand All @@ -40,7 +40,7 @@ Likewise, the current version of wxPython, is 4.2.1, but RIDE is known to work w

`pip install -U robotframework-ride`

(3.8 <= python <= 3.12) Install current development version (**2.1a3**) with:
(3.8 <= python <= 3.12) Install current development version (**2.1dev61**) with:

`pip install -U https://github.com/robotframework/RIDE/archive/master.zip`

Expand Down
7 changes: 5 additions & 2 deletions src/robotide/application/releasenotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,13 @@ def set_content(self, html_win, content):
<p><a class="reference external" href="https://github.com/robotframework/RIDE/">RIDE (Robot Framework IDE)</a>
{VERSION} is a new release with important enhancements and bug fixes. The reference for valid arguments is
<a class="reference external" href="https://robotframework.org/">Robot Framework</a> installed version, which is at this
moment 7.0.1rc1. However, internal library code is originally based on version 3.1.2, but adapted for new versions.</p>
moment 7.0.1. However, internal library code is originally based on version 3.1.2, but adapted for new versions.</p>
<p></p>
<ul class="simple">
<li>This version supports Python 3.8 up to 3.12.</li>
<li>There are some changes, or known issues:<ul>
<li>❌ - Removed support for Python 3.6 and 3.7</li>
<li>🐞 - When starting RIDE from <b>ride</b> script or executable, when closing RIDE restarts before definite close.</li>
<li>✔ - Allow to do auto-suggestions of keywords in Text Editor without a shortcut, if you want to enable or disable
this feature you can config in `Tools -> Preferences -> Text Editor -> Enable auto suggestions`.</li>
<li>✔ - Added support for Setup in keywords, since Robot Framework version 7.0.</li>
Expand Down Expand Up @@ -192,6 +193,8 @@ def set_content(self, html_win, content):
</ul>
<p><strong>New Features and Fixes Highlights</strong></p>
<ul class="simple">
<li>Allow to do auto-suggestions of keywords in Text Editor without a shortcut, if you want to enable or disable
this feature you can config in `Tools -> Preferences -> Text Editor -> Enable auto suggestions`.</li>
<li>Added support for Setup in keywords, since Robot Framework version 7.0.</li>
<li>Fixed multiline variables in Variables section. In Text Editor they are separated by ... continuation marker.
In Grid Editor use | (pipe) to separate lines.</li>
Expand Down Expand Up @@ -311,7 +314,7 @@ def set_content(self, html_win, content):
<pre class="literal-block">
python -m robotide.postinstall -install
</pre>
<p>RIDE {VERSION} was released on 26/July/2024.</p>
<p>RIDE {VERSION} was released on 29/July/2024.</p>
<!-- <br/>
<h3>May The Fourth Be With You!</h3>
<h3>Celebrate the bank holiday, 10th June, Day of Portugal, Portuguese Communities and Camões!!</h3>
Expand Down
3 changes: 2 additions & 1 deletion src/robotide/editor/texteditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2109,8 +2109,9 @@ def on_key_pressed(self, event):
# Code completion
else:
self.parent.on_content_assist(event)
self.key_trigger = 0
else:
if self.autocomplete:
if self.autocomplete and not event.ControlDown():
if key > 32 and self.key_trigger > -1:
if self.key_trigger < 2:
self.key_trigger += 1
Expand Down
2 changes: 1 addition & 1 deletion src/robotide/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
#
# Automatically generated by `tasks.py`.

VERSION = 'v2.1dev60'
VERSION = 'v2.1dev61'

0 comments on commit bcb61b8

Please sign in to comment.