Skip to content

Commit

Permalink
fix(controller/settings): reserve core hotkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
Harjot1Singh committed Jul 12, 2020
1 parent 622052a commit 8dfa06e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/frontend/src/lib/keyMap.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* Default keymap for hotkeys */

import { truncateSync } from 'fs-extra'

/**
* Adds a group to a given keymap.
* @param {*} keymap The keymap to decorate.
Expand Down Expand Up @@ -71,6 +73,11 @@ export const GLOBAL_SHORTCUTS = decorateGroup( {
sequences: [ 'ctrl+q' ],
required: true,
},
quit: {
name: 'Quit',
sequences: [ 'ctrl+q' ],
required: true,
},
} )( 'Global' )

export const COPY_SHORTCUTS = decorateGroup( {
Expand Down Expand Up @@ -130,10 +137,12 @@ export const NAVIGATOR_SHORTCUTS = decorateGroup( {
nextLine: {
name: 'Next Line',
sequences: [ 'down', 'right', 'tab', 'PageDown', 'l' ],
required: true,
},
previousLine: {
name: 'Previous Line',
sequences: [ 'up', 'left', 'shift+tab', 'PageUp', 'j' ],
required: true,
},
firstLine: {
name: 'First Line',
Expand All @@ -149,6 +158,7 @@ export const NAVIGATOR_SHORTCUTS = decorateGroup( {
name: 'Autoselect Line',
description: 'Go to main line or next jump line.',
sequences: [ 'space', 'b' ],
required: true,
},
setMainLine: {
name: 'Reset Main Line',
Expand Down

0 comments on commit 8dfa06e

Please sign in to comment.