-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MMM-KeyBindings #14
Comments
Try changing Note to self: I need to clean up error handling & config options. |
Awesome ! Done !
Works well!
Cheers
… On 22. Nov 2018, at 20:46, shbatm ***@***.***> wrote:
Try changing enableKeyboard: true, to enableKeyboard: false, if you have enableKeyBindings: true. They are mutually exclusive--if you have MMM-KeyBindings then all keyboard functions are handled by that module and 'enableKeyboard' in this module will get in the way.
Note to self: I need to clean up error handling & config options.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#14 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AciznRhGa3BZZthP3qHektAJ_wK1NXa7ks5uxv77gaJpZM4YvfXz>.
|
I'd like to jump in on this issue. config.js
dev console log
|
Do you found a solution for this issue? i have exactly the same problem. |
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
The text was updated successfully, but these errors were encountered: