Wijmo UI for the Web
GetCaretPosition Method
- The current cursor position.
- The keyCode indicate the key action.
Get the next caret position according to the special cursor position and keycode(processType).
Syntax
Javascript (Usage) 
var instance = new wijmo.input.BaseUIProcess();
var value; // Type: number

// Parameters
var cursorPos; // Type:  number
var keyCode; // Type:  number

value = instance.GetCaretPosition(cursorPos, keyCode);
Javascript (Specification) 
function GetCaretPosition( 
   cursorPos : number,
   keyCode : number
) : number;

Parameters

cursorPos
- The current cursor position.
keyCode
- The keyCode indicate the key action.

Return Value

Return the cursor position after the key action.
Browser Compatibility
7
5
5

See Also

Reference

BaseUIProcess type

 

 


© 2013 All Rights Reserved.

Send comments on this topic.