xbrowse : Keydown()
Posted: Mon Jun 18, 2007 9:43 am
Hello,
In mine aplication , i have :
oBrw:bkeyDown := {||....}
So , i try to trigger an action for nkey 32 or 13
The problem is that in method keydown , this action is executed twice :
Super:Keydown() executes also ::bKeydown
I had to change it
if ::bKeyDown = nil
return Super:KeyDown( nKey, nFlags )
end
Am i missing something ?
Frank
In mine aplication , i have :
oBrw:bkeyDown := {||....}
So , i try to trigger an action for nkey 32 or 13
The problem is that in method keydown , this action is executed twice :
Code: Select all
METHOD KeyDown( nKey, nFlags ) CLASS TXBrowse
if ::bKeyDown != nil
Eval( ::bKeyDown, nKey, nFlags )
endif
do case
case nKey == VK_UP // and other keys
.......
otherwise
return Super:KeyDown( nKey, nFlags )
endcase
return 0
I had to change it
if ::bKeyDown = nil
return Super:KeyDown( nKey, nFlags )
end
Am i missing something ?
Frank