MMM-OnScreenMenu icon indicating copy to clipboard operation
MMM-OnScreenMenu copied to clipboard

MMM-KeyBindings

Open DennisFre opened this issue 5 years ago • 4 comments

Hey, can't get the keybindings up and running with my Amazon remote.

If I habe a look into the chrome dev console it looks like this:

MMM-OnScreenMenu.js:430 Uncaught TypeError: Cannot use 'in' operator to search for 'ArrowUp' in undefined at Class.validateKeyPress (MMM-OnScreenMenu.js:430) at Class.notificationReceived (MMM-OnScreenMenu.js:105) at sendNotification (main.js:95) at Object.sendNotification (main.js:498) at Class.sendNotification (module.js:368) at Mousetrap.bindGlobal (MMM-KeyBindings.js:142) at f (mousetrap.min.js:5) at c.h._handleKey (mousetrap.min.js:7) at c.handleKey (mousetrap.min.js:10) at HTMLDocument.d (mousetrap.min.js:5)

Here is my config.js: ` { module: 'MMM-OnScreenMenu', position: 'bottom_right', // Valid positions: 'top_right', 'top_left', 'bottom_right', 'bottom_left' config: { touchMode: true, enableKeyboard: true, menuItems: { monitorOff: { title: "Turn Off Monitor", icon: "television", source: "ALL" }, restart: { title: "Restart MagicMirror", icon: "recycle", source: "ALL" }, refresh: { title: "Refresh MagicMirror", icon: "refresh", source: "ALL" }, reboot: { title: "Reboot", icon: "spinner", source: "ALL" }, shutdown: { title: "Shutdown", icon: "power-off", source: "ALL" }, }, enableKeyBindings: true, keyBindingsMode: "OSM", keyBindings: { Up: "ArrowUp", Down: "ArrowDown", Select: "Enter", Close: "Return", Menu: "Menu" }, kbMultiInstance: true, keyBindingsTakeFocus: "Menu"

        }
	}

`

Any suggestions ?

Cheers

DennisFre avatar Nov 22 '18 14:11 DennisFre