~pistos/remoteku

a347800405ae46c38a352112e63f965878e80a3d — Pistos 1 year, 4 months ago 18d9f10
Map keys to play, rewind and ff buttons
1 files changed, 4 insertions(+), 0 deletions(-)

M frontend/src/views/Home.vue
M frontend/src/views/Home.vue => frontend/src/views/Home.vue +4 -0
@@ 98,6 98,10 @@ export default {
        if (e.key === 'Enter') { e.preventDefault(); self.apiPress('select') }
        if (e.key === 'Escape') { e.preventDefault(); self.apiPress('back') }
        if (e.key === 'Backspace') { e.preventDefault(); self.apiPress('back') }
        if (e.key === 'Space') { e.preventDefault(); self.apiPress('play') }
        if (e.key === ' ') { e.preventDefault(); self.apiPress('play') }
        if (e.key === 'PageUp') { e.preventDefault(); self.apiPress('reverse') }
        if (e.key === 'PageDown') { e.preventDefault(); self.apiPress('forward') }
      }
    });
  },