Skip to content

Commit

Permalink
Reorder main menu hotkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
bastimeyer committed Nov 21, 2019
1 parent bdb9891 commit 037ef04
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/app/ui/components/main-menu/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,16 @@ import layout from "./template.hbs";
import "./styles.less";


const { isArray } = Array;


const routeHotkeys = {
"about": "F1",
"watching": "F10",
"user.auth": "F11",
"settings": "F12",
"featured": "1",
"games": "2",
"streams": "4",
"user.followedStreams": "6",
"user.followedChannels": "8"
"streams": "3",
"user.followedStreams": "4",
"user.followedChannels": "5"
};

/** @this {MainMenuComponent} */
Expand Down Expand Up @@ -77,7 +74,7 @@ export default Component.extend( HotkeyMixin, /** @class MainMenuComponent */ {
},
...Object.keys( routeHotkeys ).map( route => ({
key: routeHotkeys[ route ],
force: !isArray( routeHotkeys[ route ] ),
force: true,
/** @this {MainMenuComponent} */
action() {
this.router.transitionTo( route );
Expand Down

0 comments on commit 037ef04

Please sign in to comment.