Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NKeyboard Class / Focus Method


In This Topic
    Focus Method (NKeyboard)
    In This Topic
    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.
    Syntax
    'Declaration
     
    
    Public Shared Function Focus( _
       ByVal target 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 target
    )

    Parameters

    target

    Return Value

    returns true of the target has focus after the operation, otherwise returns false
    Requirements

    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)

    See Also