fix form key bindings

jh-changes
Shin'ya Ueoka 7 years ago
parent 556795585e
commit 6b7fad3e49
  1. 6
      src/settings/components/form/keymaps-form.jsx
  2. 2
      src/shared/settings/default.js

@ -8,8 +8,10 @@ const KeyMapFields = [
['scroll.vertically?{"count":-1}', 'Scroll up'], ['scroll.vertically?{"count":-1}', 'Scroll up'],
['scroll.horizonally?{"count":-1}', 'Scroll left'], ['scroll.horizonally?{"count":-1}', 'Scroll left'],
['scroll.horizonally?{"count":1}', 'Scroll right'], ['scroll.horizonally?{"count":1}', 'Scroll right'],
['scroll.home', 'Scroll leftmost'], ['scroll.home', 'Scroll to leftmost'],
['scroll.end', 'Scroll last'], ['scroll.end', 'Scroll to rightmost'],
['scroll.top', 'Scroll to top'],
['scroll.bottom', 'Scroll to bottom'],
['scroll.pages?{"count":-0.5}', 'Scroll up by half of screen'], ['scroll.pages?{"count":-0.5}', 'Scroll up by half of screen'],
['scroll.pages?{"count":0.5}', 'Scroll up by half of screen'], ['scroll.pages?{"count":0.5}', 'Scroll up by half of screen'],
['scroll.pages?{"count":-1}', 'Scroll up by a screen'], ['scroll.pages?{"count":-1}', 'Scroll up by a screen'],

@ -70,6 +70,8 @@ export default {
'scroll.horizonally?{"count":1}': 'l', 'scroll.horizonally?{"count":1}': 'l',
'scroll.home': '0', 'scroll.home': '0',
'scroll.end': '$', 'scroll.end': '$',
'scroll.top': 'gg',
'scroll.bottom': 'G',
'scroll.pages?{"count":-0.5}': '<C-U>', 'scroll.pages?{"count":-0.5}': '<C-U>',
'scroll.pages?{"count":0.5}': '<C-D>', 'scroll.pages?{"count":0.5}': '<C-D>',
'scroll.pages?{"count":-1}': '<C-B>', 'scroll.pages?{"count":-1}': '<C-B>',