Hotkeys for better UX; Notifications behind modal

This commit is contained in:
James Barnsley
2019-05-19 11:57:50 +12:00
parent fea7e55fe0
commit ab8677bb5d
9 changed files with 70 additions and 36 deletions

View File

@ -33,7 +33,7 @@ export default class Hotkeys extends React.Component {
let prevent = false;
switch(e.key.toLowerCase()){
case "p":
case " ":
if (this.props.play_state == 'playing'){
this.props.mopidyActions.pause();
this.props.uiActions.createNotification({content: 'pause', type: 'shortcut'});
@ -59,7 +59,7 @@ export default class Hotkeys extends React.Component {
prevent = true;
break;
case "c":
case "q":
this.props.history.push('/queue');
prevent = true;
break;

View File

@ -10,6 +10,7 @@
overflow-y: auto;
overflow-x: hidden;
min-height: 100%;
z-index: 98;
.light-theme & {
color: colour(white);