[Gambas-user] TableView and Tab key

Rolf-Werner Eilert rwe-sse at osnanet.de
Mon May 13 16:05:11 CEST 2019


Am 13.05.19 um 13:57 schrieb Gianluigi:
> 
> 
> Il giorno lun 13 mag 2019 alle ore 12:50 Rolf-Werner Eilert 
> <rwe-sse at osnanet.de <mailto:rwe-sse at osnanet.de>> ha scritto:
> 
>     Am 13.05.19 um 12:32 schrieb Gianluigi:
>      >
>      >
>      > Il giorno lun 13 mag 2019 alle ore 12:18 Rolf-Werner Eilert
>      > <rwe-sse at osnanet.de <mailto:rwe-sse at osnanet.de>
>     <mailto:rwe-sse at osnanet.de <mailto:rwe-sse at osnanet.de>>> ha scritto:
>      >
>      >     Now I tried around a bit with the editing function in TableView.
>      >
>      >     With NoKeyboard I can switch the Arrow keys on and off, and
>     Return
>      >     seems
>      >     to run as one would expect.
>      >
>      >     But when I press Tab, the cursor jumps into nowhere, the cell
>     contents
>      >     disappears, and when I click back on the cell there is a
>     short glimpse
>      >     of the selected contents which again disappears after half a
>     second.
>      >     Pressing Return will save the text and make it reappear.
>      >
>      >     So handling the Tab key(s) would be necessary. Or is it only
>     me who is
>      >     used to applying the Tab key in a table? It should have the
>     same effect
>      >     as Return, but stopping at the end of the line (in
>     LibreOffice, Word
>      >     etc. it will not stop and even produce a new line, if that is
>     wished).
>      >
>      >     Regards
>      >     Rolf
>      >
>      >
>      > In Gambas you use Return, Tab is used to switch from one control to
>      > another control.
>      > If you want to use Tab you can take a look at this Italian
>     discussion [0].
>      >
>      > Regards
>      > Gianluigi
>      >
>      > [0]
>     http://www.gambas-it.org/smf/index.php?topic=4921.msg39157#msg39157
>      >
>      >
>      > ----[ Gambas mailing-list is hosted by
>     https://www.hostsharing.net ]----
>      >
> 
>     Thank you Gianluigi, that is a good idea - although I would try to use
>     the Tab key in some way, not just block it.
> 
>     Rolf
> 
> 
> Have you read all the topics?
> Did you read this and try it?
> http://www.gambas-it.org/wiki/index.php?title=Utilizzare_il_tasto_Tab_della_tastiera_per_spostare_il_cursore_del_mouse_fra_le_celle_di_una_TableView
> 
> Gianluigi
> 
> 
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
> 

Yes, it is necessary to include the two libraries AND to define the 
observer.

Hm. Wouldn't it be easier for the user to have a property for TableView 
which does this? Something like "TabKeyStop" which would catch the Tab 
key event in the background and allow for a simple StopEvent in KeyPress?

Regards
Rolf


More information about the User mailing list