@just-web/browser-keyboard
@just-web/browser-keyboard provides browser specific implementation for @just-web/keyboard.
Install
# npm
npm install @just-web/browser-keyboard
# yarn
yarn add @just-web/browser-keyboard
# pnpm
pnpm install @just-web/browser-keyboard
#rush
rush add -p @just-web/browser-keyboard
Usage
import { justApp } from '@just-web/app'
import { commandsGizmoFn } from '@just-web/commands'
import { keyboardGizmoFn } from '@just-web/keyboard'
import { osGizmo } from '@just-web/os'
import { browserKeyboardGizmo } from '@just-web/browser-keyboard'
const app = await justApp({ name: 'your-awesome-app' })
.with(commandsGizmoFn())
.with(keyboardGizmoFn())
.with(osGizmo)
.with(browserKeyboardGizmo)
.create()
To-do
- Listen to key bindings change and add new key bindings