bkeydown me ejecuta el resultado 2 veces, es decir:
Code: Select all
...
...
::oBrowse:bKeydown:={|nkey|press_on_browse(nKey,self)}
...
...
function press_on_browse(nKey,self)
do case
case nkey = VK_F2 .and. ::lInsertButton
::lInsertMode:=.t.
::lModifyMode:=.f.
::Insert()
case nkey = VK_F3 .and. ::lModifyButton
::lInsertMode:=.f.
::lModifyMode:=.t.
::Modify()
case nkey = VK_F4 .and. ::lDeleteButton
::Delete()
case nkey = VK_F5 .and. ::lSearchButton
::Search()
case nkey = VK_F6 .and. ::lListButton
::List()
case nkey = VK_ESCAPE
::Destroy()
end case
return
¿Que puede ser?
Muchas Gracias Foro!!