| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 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-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version |