Skip to content

v0.8.0

Choose a tag to compare

@graphieros graphieros released this 01 May 04:41
· 9 commits to main since this release

Blocked keys

List of all the available blockable keys:

type KeyboardNavigationKey =
  | " "
  | "Tab"
  | "Enter"
  | "ArrowUp"
  | "ArrowDown"
  | "ArrowLeft"
  | "ArrowRight"
  | "Home"
  | "End"
  | "PageUp"
  | "PageDown"
  | "Escape";

Set blocked keys in the options object:

blockedKeys: [
  " ",
  "Tab",
  "Enter",
  "ArrowUp",
  "ArrowDown",
  "ArrowLeft",
  "ArrowRight",
  "Home",
  "End",
  "PageUp",
  "PageDown",
  "Escape",
];

Blocked events will be restored when targetHide is called.