| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version |
Arguments: window
This generic function is called whenever a window receives the keyboard focus. Applications may add :after methods in order to be notified when this occurs. The built-in methods should not be overridden. See also clear-focus.
An application may also call set-focus to move the keyboard focus to a particular window. This may not be particularly useful in most applications, because:
An application may also pass nil
to set-focus to remove the
keyboard focus from any window in the current thread, if any such
window currently has the focus. This may be useful for momentarily
disabling keyboard input, though with-events-disabled (which
disables mouse events as well as keyboard input) may be preferable in
most cases.
Most window managers will probably not allow you to programmatically
move the keyboard focus from another application to yours. Also, it
is not possible to remove the focus from all windows, and so
(set-focus nil)
will have no effect on GTK.
Copyright (c) 1998-2019, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.2 page.
Created 2012.5.30.
| Allegro CL version 9.0 Unrevised from 8.2 to 9.0. 8.2 version |