i have Set EDIT_NONE and use oWnd:bKeyDown to react on VK_RETURN
Code: Select all | Expand
oBrw:nEditTypes := EDIT_NONE
oWnd:bKeyDown := { | nKey, nFlag | DoBrowseKey( nKey, nFlag, oWnd, oGet, oBar, oBrw, aHead ) }
Code: Select all | Expand
STATIC PROCEDURE DoBrowseKey( nKey, nFlag, oWnd, oGet, oBar, oBrw , aHead)
DEFAULT aHead := {}
DO CASE
CASE nKey = VK_ESCAPE
oWnd:End()
CASE nKey = VK_RETURN
IF EMPTY(aHead)
oBrw:EditSource( .F., Struc2String( ALIAS() ) )
ELSE
oBrw:EditSource( .F., Struc2String( aHead ) )
ENDIF
![Question :?:](./images/smilies/icon_question.gif)