Le 29/03/2014 19:57, T Lee Davidson a écrit : > On 03/25/2014 01:23 PM, Benoît Minisini wrote: >> Le 25/03/2014 17:53, T Lee Davidson a écrit : >>> On 03/24/2014 08:10 PM, Benoît Minisini wrote: >>>> The ENTER or RETURN key does raise the Save event, but the event is >>>> raised only if needed (i.e. if the cell has been modified). >>> >>> That is how I understood the TableView.Edit method was supposed to >>> behave. However, in my Gambas 3.4.0, it does not. >>> >>> When a cell has been modified, the RETURN key and the arrow keys do >>> indeed raise the Save event; but the ENTER key (on the numeric keypad) >>> does not. >>> >>> I have checked, and the TableView control is correctly recognizing a >>> Key.Enter vs. a Key.Return on a KeyPress event. >>> >>> >>> Regards, >>> Lee >>> >> >> Can you try with gb.qt4 and gb.gtk to see which one works and which one >> does not? Or try to upgrade to the 3.5 version, it may be a bug that has >> been fixed. >> > > I was able to try version 3.5.1 from RPMs found online. The behavior is > the same. > > But, I think I may have come to an incorrect conclusion about the > triggering of the Save event, due to the behavior of the ENTER key. > > While editing a cell, causing modified data, the ENTER key appears to do > nothing in that it does not advance the cell-cursor to the next cell > like the RETURN key does. > > However, pressing ESC to cancel editing, after pressing ENTER, > immediately cancels all editing and shows that the cell contents have > indeed been saved. Normally, it takes two key presses of ESC to cancel > all editing. Once to cancel the current modification, and then a second > time to cancel the Edit operation. > > So ENTER does seem to be triggering the Save event, but it does not > behave consistently with the other keys that also trigger that event. > > I tried this also with gb.gtk. Or at least I think I did. I set the > GB_GUI environmental variable with `GB_GUI=gb.gtk`. I hope that was the > correct way to do it as there are no examples to follow on > http://gambaswiki.org/wiki/comp/gb.gui > > The behavior was the same. > > Regards, > Lee >
Can you provide me a small project that reproduces that bug? -- Benoît Minisini ------------------------------------------------------------------------------ _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
