<div dir="ltr">If you want to do that you must use the Mouse event :<div><br></div><div>Public Sub MyGrid_MouseDown()</div><div><br></div><div> If Mouse.Ctrl then</div><div> MyGrid......</div><div> end if</div><div><br></div><div>End</div></div><br><div class="gmail_quote"><div dir="ltr">Le jeu. 25 oct. 2018 à 13:31, David Sanromá <<a href="mailto:dsanroma@gmail.com">dsanroma@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello everyone,<br>
<br>
I am brand new to Gambas and I must say I am loving it.<br>
<br>
<br>
I do have 2 questions...<br>
<br>
* I am trying to use a GridView (Mode = Single) and once I select an <br>
element, I don't seem to find the way to "Unselect" it via the UI in <br>
run-time. I tried Ctrl+Click, Alt+Click, Shift.... and so on and no <br>
dice. Something I should know ?<br>
<br>
<br>
* I tried to "implement" my own Ctrl+Click to unselect the current row <br>
and I found an strange behavior which seems inconsistent with the <br>
documentation.<br>
<br>
<br>
Public Sub FormatsGridView_KeyPress()<br>
<br>
Print Key.Control<br>
<br>
End<br>
<br>
<br>
It prints False when I just press the Ctrl key by it self. However, it <br>
prints True when I press Ctrl+A<br>
<br>
<br>
I tried the code in the documentation <br>
(<a href="http://gambaswiki.org/wiki/comp/gb.qt4/key/control?nl" rel="noreferrer" target="_blank">http://gambaswiki.org/wiki/comp/gb.qt4/key/control?nl</a>) and same thing. <br>
Me.Text is always set to False if the only key that is pressed is the <br>
Control key by itself.<br>
<br>
<br>
Please forgive my inexperience with Gambas ;)<br>
<br>
TIA,<br>
<br>
David<br>
<br>
<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Fabien Bodard </div>