Clear the Focus ?

I wanted to clear the focus from the Controls in the Window and I tried:

Self.Focus = Nil Self.Focus = Canvas1

and some other oddities without success.

What I really want to do is to be able to Copy or Paste data From / To TextFields, TextAreas and PopupMenus (I am in testing phase and do not want to type data into the window Controls before adding data in a SQLite DataBase)

El Capitan,
Xojo 2015r1
Xojo 2017r2.1 (to be sure I can ask here; instead of searching in the multiple Release Notes files).

Try ClearFocus or Self.SetFocus.

http://documentation.xojo.com/index.php/ClearFocus
http://documentation.xojo.com/index.php/Window.SetFocus

Thank you Paul.

It may be a good idea to not fire Xojo after launch :frowning:

Nota: I tried to put the Focus to the Canvas (for testings, but it failed too. I may also have to change my glasses…

ClearFocus works, but Self.SetFocus() in MouseDown does not…

I have a solution.