문제

rebol []

view [ 
    f: field "" 
    button "focus" on-action [
        focus f
    ]
    when [load] on-action [focus f] 
]

Using the focus button sets the focus correctly but I'd like the focus to set when the panel appears. I'd have thought the load trigger should do this but it doesn't.

도움이 되었습니까?

해결책

The correct trigger to use is the 'enter trigger

when [enter] on-action [focus f] 
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top