Share via


ILayout2.getAdjacent method

Determines the next item to receive keyboard focus.

Syntax

var object = iLayout2.getAdjacent(currentItem, pressedKey);

Parameters

  • currentItem
    Type: Object

    An object that describes the current item. It has these properties:

    • index
      The index of the current item.

    • type
      An WinJS.UI.ObjectType value that specifies whether the item is an item or a group header.

  • pressedKey
    Type: WinJS.Utilities.Key**

    The key that was pressed.

Return value

Type: Object

An object that describes the next item that should receive focus. It has these properties:

Term Description

index

The index of the next item.

type

An WinJS.UI.ObjectType value that specifies whether the item is an item or a group header.

 

Requirements

Minimum WinJS version

WinJS 3.0

Namespace

WinJS.UI

See also

ILayout2