summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Wiegley <dwiegley@salesforce.com>2019-02-18 12:23:43 -0700
committerDoug Wiegley <dwiegley@salesforce.com>2019-02-18 12:24:50 -0700
commit0ff7b5ef5b1d8fee6bae202395bcc3ec9d0b6e43 (patch)
treea1472e5dd743bd9f7940470e15057b3f0d5b764a
parentd92570abd4080d10ee217cb46e382be298b6fa9d (diff)
Add ctrl-v/meta-v bindings for page-up/page-down
Many of the other keybindings seem to have emacs defaults, so add page-up/page-down, for use on laptop keyboards without real page keys. Change-Id: I02bd8bebe9bfea89133d2eb28322bcf5fabaacf8
Notes
Notes (review): Code-Review+2: James E. Blair <corvus@inaugust.com> Workflow+1: James E. Blair <corvus@inaugust.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Tue, 19 Mar 2019 14:42:43 +0000 Reviewed-on: https://review.openstack.org/637610 Project: openstack/gertty Branch: refs/heads/master
-rw-r--r--gertty/keymap.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gertty/keymap.py b/gertty/keymap.py
index 56c380f..a77a361 100644
--- a/gertty/keymap.py
+++ b/gertty/keymap.py
@@ -91,8 +91,8 @@ DEFAULT_KEYMAP = {
91 CURSOR_DOWN: 'down', 91 CURSOR_DOWN: 'down',
92 CURSOR_LEFT: 'left', 92 CURSOR_LEFT: 'left',
93 CURSOR_RIGHT: 'right', 93 CURSOR_RIGHT: 'right',
94 CURSOR_PAGE_UP: 'page up', 94 CURSOR_PAGE_UP: ['page up', 'meta v'],
95 CURSOR_PAGE_DOWN: 'page down', 95 CURSOR_PAGE_DOWN: ['page down', 'ctrl v'],
96 CURSOR_MAX_LEFT: ['home', 'ctrl a'], 96 CURSOR_MAX_LEFT: ['home', 'ctrl a'],
97 CURSOR_MAX_RIGHT: ['end', 'ctrl e'], 97 CURSOR_MAX_RIGHT: ['end', 'ctrl e'],
98 ACTIVATE: 'enter', 98 ACTIVATE: 'enter',