This PR includes a couple of fixes and a new feature – sorry for presenting all together, I can make different PRs if needed.
Fixes
fixed text-area "Enter" behaviour that was not triggering the new line event as expected;
changed tab to JavaScript common 4 spaces instead of 8, to increase readability.
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).
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 thelocalStorage
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 aglobal
.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).