ui.gadgets.tables: clicking in empty area no longer notifies selection model

db4
Slava Pestov 2009-07-06 23:19:26 -05:00
parent d56e818beb
commit 328c6d02f5
1 changed files with 4 additions and 3 deletions

View File

@ -313,13 +313,14 @@ PRIVATE>
if ;
: row-action? ( table -- ? )
[ [ mouse-row ] keep valid-line? ]
[ single-click?>> hand-click# get 2 = or ] bi and ;
single-click?>> hand-click# get 2 = or ;
<PRIVATE
: table-button-up ( table -- )
dup row-action? [ row-action ] [ update-selected-value ] if ;
dup [ mouse-row ] keep valid-line? [
dup row-action? [ row-action ] [ update-selected-value ] if
] [ drop ] if ;
PRIVATE>