xontab / chrome-virtual-keyboard

Touch-friendly Virtual Keyboard for Chrome browser
http://apps.xontab.com/VirtualKeyboard/
MIT License
58 stars 68 forks source link

Fixed Enter behaviour for textareas; added default init settings for … #40

Closed lucalenardi closed 1 year ago

lucalenardi commented 5 years ago

This PR includes a couple of fixes and a new feature – sorry for presenting all together, I can make different PRs if needed.

Fixes

New feature

Added a default settings section. The PR introduces a new function set_defaults() which actually sets the keyboard defaults in the localStorage without necessarily open the settings page when the extension is installed the first time. The original behaviour – open the settings page the first time – could be kept by changing a global.

This is especially useful with in-memory/live operating systems, which do not store configurations persistently in the file system, forcing the settings to be reconfigured on every boot (e.g. Porteus like kiosks or digital signage os).