Changed hotkeys to more sensible shortcuts.

Shortcuts can be used even from the remote control.
This commit is contained in:
Gunther Brunner
2014-07-22 17:02:42 +09:00
parent 4234bb9e34
commit 91239d22f8
2 changed files with 19 additions and 10 deletions

View File

@@ -70,26 +70,33 @@ module.exports =
} else {
$rootScope.platform = 'web'
}
},
scale: function () {
// TODO: scale size
}
}
ScopedHotkeysService($scope, [
//['shift+up', gettext('Previous Device'), actions.previousDevice],
//['shift+down', gettext('Next Device'), actions.nextDevice],
['shift+d', gettext('Go to Device List'), actions.deviceList],
['command+shift+d', gettext('Go to Device List'), actions.deviceList],
['shift+space', gettext('Selects Next IME'), actions.switchCharset],
['command+left', gettext('Rotate Left'), actions.rotateLeft],
['command+right', gettext('Rotate Right'), actions.rotateRight],
//['command+1', gettext('Scale 100%'), actions.scale],
//['command+2', gettext('Scale 75%'), actions.scale],
//['command+3', gettext('Scale 50%'), actions.scale],
//['shift+l', gettext('Focus URL bar'), actions.focusUrlBar],
//['shift+s', gettext('Take Screenshot'), actions.takeScreenShot],
['shift+m', gettext('Press Menu button'), actions.pressMenu],
['shift+h', gettext('Press Home button'), actions.pressHome],
['shift+b', gettext('Press Back button'), actions.pressBack],
['command+shift+m', gettext('Press Menu button'), actions.pressMenu],
['command+shift+h', gettext('Press Home button'), actions.pressHome],
['command+shift+b', gettext('Press Back button'), actions.pressBack],
//['shift+i', gettext('Show/Hide device'), actions.toggleDevice],
['shift+w', gettext('Toggle Web/Native'), actions.togglePlatform]
['shift+w', gettext('Toggle Web/Native'), actions.togglePlatform, false]
])
}