Code: Select all
If oDlg:aControls[i]:lFocused
//-- Your function
exit
end
We want to know the Get that was in focus before pressing the VK button, which has already lost focus.
Code: Select all
If oDlg:aControls[i]:lFocused
//-- Your function
exit
end
Code: Select all
oGet:bLostFocus:={| | LastFocus( self ) }
Then you could simply do:
setFocus( LastFocus() )
// Set/Get function to store last focused control
static function LastFocus( oControl )
local oReply
static oOldControl
oReply:= oOldControl
if oControl != nil
oOldControl:= oControl
endif
return oReply