New to KendoReactLearn about KendoReact Free.

Keyboard Navigation

Updated on Jun 22, 2026

Managing the Focus

The OTPInput is a composite component made up of individual input cells. Focus is managed internally — when a cell value is entered or deleted, the component automatically moves focus to the next or previous cell. The first cell receives focus when the user tabs into the component or clicks any cell.

Keyboard Shortcuts

ShortcutBehavior
Typing in the inputSets the value in the focused cell and automatically moves the focus to the next cell (if any).
TabFocuses the next input in the OTP. If the focus is on the last input, focuses the next focusable element on the page.
Shift + TabFocuses the previous input in the OTP. If the focus is on the first input, focuses the previous focusable element before the OTP.
ArrowRightMoves the focus to the next focusable input in the OTP (if any).
ArrowLeftMoves the focus to the previous focusable input in the OTP (if any).
BackspaceDeletes the value of the focused input and moves the focus on the previous input (if any).
DeleteDeletes the value of the focused input without moving focus.

Pasting Values

The OTPInput supports pasting values from the clipboard, starting from the focused cell. If the pasted value exceeds the total number of cells, it will be automatically trimmed to fit.

  1. Copy the following code:

    text
    123456789
  2. Paste it into the OTPInput using the Ctrl+V keyboard shortcut or the browser's context menu.

Change Theme
Theme
Loading ...

See Also