chabou/hyper-pane

Alt Gr shortcut on Windows

BenjaminITS opened this issue · 2 comments

Hello,

Is it a way to disable the Alt Gr shortcut ? I use an azerty keyboard on Windows. And when the plugin is enable I can't use, for example, the shortcut Alt Gr + 6 to make the "|" char.

Thanks

You have to remap default keys. For exemple, using ctrl+shift instead:

module.exports = {
  config: {
    // other configs...
    paneNavigation: {
      hotkeys: {
        navigation: {
          up: 'ctrl+shift+up',
          down: 'ctrl+shift+down',
          left: 'ctrl+shift+left',
          right: 'ctrl+shift+right'
        },
        jump_prefix: 'ctrl+shift', // completed with 1-9 digits
        permutation_modifier: 'alt', // Added to jump and navigation hotkeys for pane permutation
      },
      indicatorPrefix: '^⇧', // Will be completed with pane number
    }
  }
  //...
};

Good to know, on Windows: ctrl+alt === altGr

It works, perfect.

Thank you