diff options
| author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-01-13 11:14:55 +0000 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-13 11:14:55 +0000 | 
| commit | 2302a1d8b5472b30fd202070b71dc6c43f7e469c (patch) | |
| tree | ad7fd77301dbabd8fce40b34f7088f1ca766f15b /src/shared | |
| parent | 4d4a959162da0a4f1eb16c3ce94e83da0465f865 (diff) | |
| parent | 335b9ca47458b1817ef7705f4d999c25f423fad9 (diff) | |
Merge pull request #307 from ueokande/smooth-scroll
Smooth scroll
Diffstat (limited to 'src/shared')
| -rw-r--r-- | src/shared/settings/properties.js | 2 | ||||
| -rw-r--r-- | src/shared/utils/keys.js | 1 | 
2 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/settings/properties.js b/src/shared/settings/properties.js index f695c58..37dc881 100644 --- a/src/shared/settings/properties.js +++ b/src/shared/settings/properties.js @@ -4,11 +4,13 @@  //    mybool: 'boolean',  const types = {    hintchars: 'string', +  smoothscroll: 'boolean',  };  // describe default values of a property  const defaults = {    hintchars: 'abcdefghijklmnopqrstuvwxyz', +  smoothscroll: false,  };  export { types, defaults }; diff --git a/src/shared/utils/keys.js b/src/shared/utils/keys.js index fba8ce3..8a86dfb 100644 --- a/src/shared/utils/keys.js +++ b/src/shared/utils/keys.js @@ -18,6 +18,7 @@ const fromKeyboardEvent = (e) => {    return {      key: modifierdKeyName(e.key), +    repeat: e.repeat,      shiftKey: shift,      ctrlKey: e.ctrlKey,      altKey: e.altKey,  | 
