KB-45204: Setting up a SetPoint to lose focus once Enter key is pressed.

Question:

How can a SetPoint be set up to lose keyboard focus whenever Enter key is pressed?

Solution:

To do so, use the script below at KeyDown event of the screen where the SetPoint is. It will check whether Enter key has been pressed; if so, the keyboard will lose focus to the screen.

If keyCode = 13 Then
     SetFocus()
End If

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *