Skip to main content
Home

Built and signed on GitHub Actions

Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score100%
Publisheda year ago (1.0.8)

Easily handle keyboard events.

Hello ( ´ ω ` )ノ゙ Welcome to Teclas! This module allows you to easily and precisely handle keystrokes on event listeners. Handling keyboard events is a common requirement in software development, but managing them inline within JSX code can make the code less readable and harder to maintain. Teclas provides an abstraction for common keystroke event handlers, enabling you to import and reuse them anywhere in your application. This enhances extensibility and maintainability, especially when you need to add or modify existing keystrokes. With Teclas, you can detect individual key presses, handle different behaviors for modifier keys on Windows and macOS, and support complex keystroke combinations with ease.

Built and signed on
GitHub Actions

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@carcajada/teclas

Import symbol

import * as teclas from "@carcajada/teclas";
or

Import directly with a jsr specifier

import * as teclas from "jsr:@carcajada/teclas";

Add Package

pnpm i jsr:@carcajada/teclas
or (using pnpm 10.8 or older)
pnpm dlx jsr add @carcajada/teclas

Import symbol

import * as teclas from "@carcajada/teclas";

Add Package

yarn add jsr:@carcajada/teclas
or (using Yarn 4.8 or older)
yarn dlx jsr add @carcajada/teclas

Import symbol

import * as teclas from "@carcajada/teclas";

Add Package

vlt install jsr:@carcajada/teclas

Import symbol

import * as teclas from "@carcajada/teclas";

Add Package

npx jsr add @carcajada/teclas

Import symbol

import * as teclas from "@carcajada/teclas";

Add Package

bunx jsr add @carcajada/teclas

Import symbol

import * as teclas from "@carcajada/teclas";