Focuses the keyboard to the specified input target. This method should be called by all implementations of INInputTarget.Focus(). Any subsequent keyboard events send to the DOM for processing will first be processed by the focus target.
'Declaration
Public Shared Function Focus( _
ByVal As INInputNode _
) As System.Boolean
'Usage
Dim target As INInputNode
Dim value As System.Boolean
value = NKeyboard.Focus(target)
public static System.bool Focus(
INInputNode
)
Parameters
- target
Return Value
returns true of the target has focus after the operation, otherwise returns false
Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)