Add wxWindow::DisableFocusFromKeyboard()

This allows to easily exclude a window from the TAB chain.

Closes https://github.com/wxWidgets/wxWidgets/pull/1516
This commit is contained in:
Tomay
2019-08-29 01:47:37 +01:00
committed by Vadim Zeitlin
parent e5fb5a290c
commit bbdd5b4984
3 changed files with 21 additions and 2 deletions

View File

@@ -487,6 +487,17 @@ public:
*/
virtual bool AcceptsFocusRecursively() const;
/**
Disable giving focus to this window using the keyboard navigation keys.
Pressing @c TAB key will skip this window if this function was called
on it, but it will still be possible to focus it by clicking on it with
a pointing device.
@since 3.1.4
*/
void DisableFocusFromKeyboard();
/**
Can this window itself have focus?
*/