andischerer/atom-keyboard-localization

Uncaught TypeError: Cannot read property 'keyIdentifier' of undefined

Closed this issue · 0 comments

[Enter steps to reproduce below:]

  1. Open command palette (ctrl+shift+p)
  2. type reg and enter

Atom Version: 1.0.19
System: Ubuntu 15.04
Thrown From: keyboard-localization package, v1.4.9

Stack Trace

Uncaught TypeError: Cannot read property 'keyIdentifier' of undefined

At /home/mike/.atom/packages/keyboard-localization/lib/modifier-state-handler.coffee:164

TypeError: Cannot read property 'keyIdentifier' of undefined
  at ModifierStateHandler.module.exports.ModifierStateHandler.detectAltGrKeyDown (/home/mike/.atom/packages/keyboard-localization/lib/modifier-state-handler.coffee:164:13)
  at ModifierStateHandler.module.exports.ModifierStateHandler.handleKeyEvent (/home/mike/.atom/packages/keyboard-localization/lib/modifier-state-handler.coffee:178:6)
  at Object.KeyboardLocalization.onKeyDown (/home/mike/.atom/packages/keyboard-localization/lib/keyboard-localization.coffee:108:27)
  at KeymapManager.keystrokeForKeyboardEvent (/home/mike/.atom/packages/keyboard-localization/lib/keyboard-localization.coffee:90:10)
  at VimState.module.exports.VimState.registerName (/home/mike/.atom/packages/vim-mode/lib/vim-state.coffee:576:25)
  at VimState.module.exports.VimState.registerPrefix (/home/mike/.atom/packages/vim-mode/lib/vim-state.coffee:567:28)
  at registerOperationCommands.register-prefix (/home/mike/.atom/packages/vim-mode/lib/vim-state.coffee:168:34)
  at atom-text-editor.commands.(anonymous function) (/home/mike/.atom/packages/vim-mode/lib/vim-state.coffee:207:60)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:245:29)
  at /usr/share/atom/resources/app.asar/src/command-registry.js:3:61
  at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/usr/share/atom/resources/app.asar/node_modules/command-palette/lib/command-palette-view.js:159:32)
  at CommandPaletteView.module.exports.SelectListView.confirmSelection (/usr/share/atom/resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:338:21)
  at space-pen-div.atom.commands.add.core:confirm (/usr/share/atom/resources/app.asar/node_modules/atom-space-pen-views/lib/select-list-view.js:109:19)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app.asar/src/command-registry.js:245:29)
  at /usr/share/atom/resources/app.asar/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:524:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:347:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/usr/share/atom/resources/app.asar/src/window-event-handler.js:184:20)

Commands

     -1:45.6.0 vim-mode:register-prefix (atom-text-editor.editor.vim-mode.normal-mode)
  5x -1:40.9.0 blur (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -1:18.3.0 command-palette:toggle (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -1:17.9.0 blur (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -1:14.2.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -1:14.2.0 blur (atom-text-editor.editor.mini.is-focused)
     -1:14.2.0 find-and-replace:show (atom-text-editor.editor.vim-mode.normal-mode)
     -1:14.1.0 blur (atom-text-editor.editor.vim-mode.normal-mode)
     -1:11.9.0 editor:consolidate-selections (atom-text-editor.editor.mini.is-focused)
     -1:11.9.0 core:cancel (atom-text-editor.editor.mini.is-focused)
  5x -1:11.9.0 blur (atom-text-editor.editor.mini.is-focused)
     -0:02.8.0 command-palette:toggle (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:02.4.0 blur (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -0:01.1.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:01.1.0 blur (atom-text-editor.editor.mini.is-focused)
     -0:01.1.0 vim-mode:register-prefix (atom-text-editor.editor.vim-mode.normal-mode)

Config

{
  "core": {
    "autoHideMenuBar": true,
    "audioBeep": false
  },
  "keyboard-localization": {
    "useKeyboardLayout": "fr_FR"
  }
}

Installed Packages

# User
ex-mode, v0.7.0
keyboard-localization, v1.4.9
vim-mode, v0.60.0

# Dev
No dev packages