Function “getFocusIndex”

function getFocusIndex()

Gets the current focus index

Return Value

Returns the index of the item that currently has the keyboard focus.

Example

var items = getItems()
var index = getFocusIndex()
if (index < items.length)
	alert(items[index].fullLocalPath(), "Focused Item:")
else alert("No item is currently focused", "Focused Item:");