[Gambas-user] TableView.Edit: Save event not triggered by ENTER key

T Lee Davidson t.lee.davidson at ...626...
Sat Mar 29 22:04:22 CET 2014


On 03/29/2014 03:34 PM, Benoît Minisini wrote:
>> 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

Sure. I am not exactly sure how to share Gambas projects. I have 
attached TableviewEditEnterBug.tar which is an archive of the project 
directory. I hope that was the right way to do it.

Regards,
Lee
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TableviewEditEnterBug.tar
Type: application/x-tar
Size: 20480 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20140329/3de87d98/attachment.tar>


More information about the User mailing list