vue-keyboard-plugin

1.3.0 • Public • Published

Vue-Keyboard

Vue.js Windows QWERTY onscreen keyboard for textarea elements keyboard

Installation

npm install vue-keyboard-plugin

Usage

Add the plugin path to your tailwind config content

module.exports = {
  content: [
    "./index.html",
    "./src/**/*.{vue,js,ts,jsx,tsx}",
    "./node_modules/vue-keyboard-plugin/dist/**/*.{vue,js,ts,jsx,tsx}",
  ],

  plugins: [],
};

Render the keyboard component at the top layer of your app

<!-- App.vue -->

<script setup>
import VueKeyboard from "vue-keyboard-plugin";

</script>

<template>
  <textarea name="" id="" cols="30" rows="10"/>
  ....

  <VueKeyboard />
</template>

Features

On the keyboard you can:

  • Navigate with arrow buttons
  • Utilize the shift and arrow buttons to select all or part of the textarea's value
  • Cut, copy, paste and select all text with the usual key combinations
  • Use keyboard in both dark and light modes (this is based on system's scheme preference)

Contributing

  1. Fork Repo and create your feature branch: git checkout -b my-update
  2. Commit your changes: git commit -am 'Updated some parts'
  3. Push to the branch: git push origin my-update
  4. Submit a pull request

Acknowledgements

Package Sidebar

Install

npm i vue-keyboard-plugin

Weekly Downloads

0

Version

1.3.0

License

MIT

Unpacked Size

50.4 kB

Total Files

5

Last publish

Collaborators

  • alphaglitch