Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🍫 ⌨️ enhanced keyboard tabbing usability on any website / webapp with one line of code.

License

NotificationsYou must be signed in to change notification settings

fabiocaccamo/tabbo.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tabbo.js

🍫 ⌨️ enhanced keyboard tabbing usability on any website / webapp with one line of code.

Table of contents

Features

  • Vanilla JS / Zero dependencies
  • Preserved defaulttabindex behaviour
  • Tabbing enabled on the following elements:'a','button','input','select','summary','textarea','[tabindex]'(any element withtabindex attribute)
  • Tabbing disabled on all elements that aredisabled(impossible to interact with) orinvisible(hidden or without width/height)
  • Tabbing disabled on all elements that are children/descendants of elements with tabbing disabled
  • Tabbing trapped inside modal elements(any element witharia-modal="true" attribute that is enabled and visible)
  • Reversed tabbing order whenShift key is pressed
  • Looped tabbing when reaching the last focusable element
  • Checkboxes can be checked/unchecked usingEnter key

Installation

This library is available throughnpm:

npm install @fabiocaccamo/tabbo.js

Usage

CDN

<scriptsrc=" https://cdn.jsdelivr.net/npm/@fabiocaccamo/tabbo.js/dist/tabbo.min.js"></script>

Local

<scriptsrc="node_modules/@fabiocaccamo/tabbo.js/dist/tabbo.min.js"></script>

Node

consttabbo=require("@fabiocaccamo/tabbo.js");

APIs

Theonly thing you have to do is activatetabbo as soon as possible:

tabbo.activate();

If needed, you can deactivatetabbo at any time:

tabbo.deactivate();

Development

Setup

  • git clone https://github.com/fabiocaccamo/tabbo.js.git
  • npm install

Watch

  • npm run watch

Build

  • npm run build

Security

Refer toSECURITY.md

License

Released underMIT License.

About

🍫 ⌨️ enhanced keyboard tabbing usability on any website / webapp with one line of code.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp