All Projects → chriscook → On Screen Keyboard

chriscook / On Screen Keyboard

Licence: mit
A jQuery plug-in which provides users with a fluid-width on-screen keyboard.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to On Screen Keyboard

keynavish
Control the mouse with the keyboard, on Windows.
Stars: ✭ 59 (-6.35%)
Mutual labels:  keyboard, accessibility
Js Offcanvas
A lightweight, flexible jQuery off-canvas navigation plugin which lets you create fully accessible sidebar or top/bottom sliding (or push) panels with keyboard interactions and ARIA attributes.
Stars: ✭ 272 (+331.75%)
Mutual labels:  accessibility, jquery
mouseable
'Mouseable' is intended to replace a mouse or trackpad.
Stars: ✭ 418 (+563.49%)
Mutual labels:  keyboard, accessibility
Ally.js
JavaScript library to help modern web applications with accessibility concerns
Stars: ✭ 1,447 (+2196.83%)
Mutual labels:  keyboard, accessibility
Selectpage
A simple style and powerful selector, including ajax remote data, autocomplete, pagination, tags, i18n and keyboard navigation features
Stars: ✭ 679 (+977.78%)
Mutual labels:  keyboard, jquery
Keyboard
Virtual Keyboard using jQuery ~
Stars: ✭ 1,670 (+2550.79%)
Mutual labels:  keyboard, jquery
Ayase
🥥 Control everything by keyboard. Built for hackers and the blind.
Stars: ✭ 53 (-15.87%)
Mutual labels:  keyboard, accessibility
kindaVim.theapp
Ultimate Vim Mode for macOS
Stars: ✭ 372 (+490.48%)
Mutual labels:  keyboard, accessibility
Frontend Cheat Sheets
Collection of cheat sheets(HTML, CSS, JS, Git, Gulp, etc.,) for your frontend development needs & reference
Stars: ✭ 604 (+858.73%)
Mutual labels:  accessibility, jquery
React Simple Keyboard
React Virtual Keyboard - Customizable, responsive and lightweight
Stars: ✭ 301 (+377.78%)
Mutual labels:  keyboard, touchscreen
Simple Keyboard
Javascript Virtual Keyboard - Customizable, responsive and lightweight
Stars: ✭ 1,275 (+1923.81%)
Mutual labels:  keyboard, touchscreen
A11y tooltips
Accessible Tooltip Component
Stars: ✭ 35 (-44.44%)
Mutual labels:  accessibility, jquery
Modal Video
Stars: ✭ 224 (+255.56%)
Mutual labels:  accessibility, jquery
dasher-web
Dasher text entry in HTML, CSS, JavaScript, and SVG
Stars: ✭ 34 (-46.03%)
Mutual labels:  keyboard, accessibility
Boston.gov D7
Once housed code for boston.gov. Have moved to Drupal 8 as of November 2019.
Stars: ✭ 290 (+360.32%)
Mutual labels:  accessibility, jquery
Jquery Rslitegrid
Input tabular data with your keyboard
Stars: ✭ 5 (-92.06%)
Mutual labels:  keyboard, jquery
Dom Slider
Plain JavaScript version of jQuery's slideToggle(), slideDown(), & slideUp(), but does not use display: none.
Stars: ✭ 44 (-30.16%)
Mutual labels:  accessibility, jquery
Jquery Floating Social Share
Social media share buttons with counters.
Stars: ✭ 57 (-9.52%)
Mutual labels:  jquery
Jquery.numpad
Touch-optimized numeric on-screen keypad for jQuery
Stars: ✭ 60 (-4.76%)
Mutual labels:  jquery
Keyboardhidemanager
Codeless manager to hide keyboard by tapping on views for iOS written in Swift
Stars: ✭ 57 (-9.52%)
Mutual labels:  keyboard

On Screen Keyboard

Version 1.0.2

Introduction

On-Screen Keyboard is a jQuery plug-in which allows a fluid-width keyboard to be launched when the user clicks on an element.

Demo

A demo is available here.

How to use it

  1. Add jquery.onScreenKeyboard.js and onScreenKeyboard.css to your project, along with jQuery. Optionally also add jQuery UI with the Draggables widget if you would like your users to be able to move the keyboard around the screen.
  2. Create your form or input elements.
  3. Add the following JavaScript to your page, to be executed on load:
	$('.osk-trigger').onScreenKeyboard();

...where .osk-trigger is a selector for the input elements you would like to trigger the keyboard.

A demo is available in demo.html.

Additional settings

Additional settings can be used to customise the keyboard, and should be added as a parameter within curly braces:

  • draggable: Requres jQuery UI with Draggables Whether or not the keyboard is movable (default false; must be boolean).
  • rewireReturn: Make the return key submit the form instead of inserting a linebreak (default false; must be either boolean false or a string to replace 'return' with on the key).
  • rewireTab: Make the tab key cycle through input elements in the order they appear in the DOM instead of inserting a tab (default false; must be boolean).
  • topPosition: The top CSS property of the keyboard (default 20%; must be a string suitable for CSS, i.e. one ending in a measurement unit).
  • leftPosition: The left CSS property of the keyboard (default 30%; must be a string suitable for CSS, i.e. one ending in a measurement unit).

An example of these in practice:

	$('.osk-trigger').onScreenKeyboard({
		'draggable': true,
		'rewireReturn': 'search',
		'rewireTab': true
	});

In addition to these universal settings, you can change the keyboard on an input-by-input basis using the following parameters added to your input elements under the attribute data-osk-options, separated by spaces:

  • disableSymbols allows you to disable the symbol keys.
  • disableTab allows you to disable the tab key.
  • disableReturn allows you to disable the return key.

An example of these in practice:

	<input type="text" id="input1" class="osk-trigger" data-osk-options="disableReturn disableTab">

jquery.onscreenkeyboard.js contains the HTML for the keyboard at the bottom. As long as class names remain the same, this can be changed however much you like. The keyboard can only be written manually (e.g. custom non-us keyboard layouts) - the plugin is able to pick it up. Keep in mind that the character entered into the input box is taken directly from the contents of the li element for the pressed key (with exceptions for special keys such as return and tab, when not overridden, and backspace).

onscreenkeyboard.css can also be edited to customise the keyboard's design. The first section, "Keyboard Structure" should be mostly left alone. The second section contains definitions for colour and keyboard position.

Compatibility

  • Internet Explorer 7+
  • Firefox 3+
  • Chrome
  • Opera (see note below)
  • Safari

Issues

  • In Opera, the widths of keys on the upper three rows will not match that of the space bar. This is due to the way Opera deals with sub-pixel values.

Author and Acknowledgements

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].