mirror of
https://github.com/openstf/stf
synced 2025-10-05 19:42:01 +02:00
All of the usable hotkeys now work and are translated.
This commit is contained in:
parent
700c320257
commit
6a8fb6fa75
4 changed files with 608 additions and 869 deletions
|
@ -74,64 +74,22 @@ module.exports =
|
|||
}
|
||||
|
||||
ScopedHotkeysService($scope, [
|
||||
['shift+up', gettext('Previous Device'), actions.previousDevice],
|
||||
['shift+down', gettext('Next Device'), actions.nextDevice],
|
||||
//['shift+up', gettext('Previous Device'), actions.previousDevice],
|
||||
//['shift+down', gettext('Next Device'), actions.nextDevice],
|
||||
['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],
|
||||
|
||||
['shift+l', gettext('Focus URL bar'), actions.focusUrlBar],
|
||||
['shift+s', gettext('Take Screenshot'), actions.takeScreenShot],
|
||||
//['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],
|
||||
|
||||
['shift+i', gettext('Show/Hide device'), actions.toggleDevice],
|
||||
//['shift+i', gettext('Show/Hide device'), actions.toggleDevice],
|
||||
['shift+w', gettext('Toggle Web/Native'), actions.togglePlatform]
|
||||
])
|
||||
//
|
||||
// var hotkeySet = [
|
||||
// ['shift+up', gettext('Previous Device'), actions.previousDevice],
|
||||
// ['shift+down', gettext('Next Device'), actions.nextDevice],
|
||||
// ['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],
|
||||
//
|
||||
// ['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],
|
||||
//
|
||||
// ['shift+i', gettext('Show/Hide device'), actions.toggleDevice],
|
||||
// ['shift+w', gettext('Toggle Web/Native'), actions.togglePlatform]
|
||||
// ]
|
||||
//
|
||||
// function hotkeyAdd(combo, desc, cb) {
|
||||
// hotkeys.add({
|
||||
// combo: combo,
|
||||
// description: $filter('translate')(desc),
|
||||
// allowIn: ['textarea'],
|
||||
// callback: function (event) {
|
||||
// event.preventDefault()
|
||||
// cb()
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// angular.forEach(hotkeySet, function (value) {
|
||||
// hotkeyAdd(value[0], value[1], value[2])
|
||||
// })
|
||||
//
|
||||
// $scope.$on('$destroy', function () {
|
||||
// angular.forEach(hotkeySet, function (value) {
|
||||
// hotkeys.del(value[0])
|
||||
// })
|
||||
// })
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -343,10 +343,6 @@ msgstr ""
|
|||
msgid "Find Device"
|
||||
msgstr ""
|
||||
|
||||
#: /Users/a12907/STF/stf/res/app/control-panes/control-panes-hotkeys-controller.js
|
||||
msgid "Focus URL bar"
|
||||
msgstr ""
|
||||
|
||||
#: /Users/a12907/STF/stf/tmp/html/app/control-panes/advanced/port-forwarding/port-forwarding.html
|
||||
msgid "Forward"
|
||||
msgstr ""
|
||||
|
@ -562,10 +558,6 @@ msgstr ""
|
|||
msgid "Next"
|
||||
msgstr ""
|
||||
|
||||
#: /Users/a12907/STF/stf/res/app/control-panes/control-panes-hotkeys-controller.js
|
||||
msgid "Next Device"
|
||||
msgstr ""
|
||||
|
||||
#: /Users/a12907/STF/stf/res/app/components/stf/device/device-info-filter/index.js
|
||||
msgid "No"
|
||||
msgstr ""
|
||||
|
@ -582,6 +574,10 @@ msgstr ""
|
|||
msgid "No device screen"
|
||||
msgstr ""
|
||||
|
||||
#: /Users/a12907/STF/stf/tmp/html/app/device-list/device-list-empty.html
|
||||
msgid "No devices connected"
|
||||
msgstr ""
|
||||
|
||||
#: /Users/a12907/STF/stf/tmp/html/app/components/stf/common-ui/modals/lightbox-image/lightbox-image.html
|
||||
msgid "No photo available"
|
||||
msgstr ""
|
||||
|
@ -719,10 +715,6 @@ msgstr ""
|
|||
msgid "Previous"
|
||||
msgstr ""
|
||||
|
||||
#: /Users/a12907/STF/stf/res/app/control-panes/control-panes-hotkeys-controller.js
|
||||
msgid "Previous Device"
|
||||
msgstr ""
|
||||
|
||||
#: /Users/a12907/STF/stf/tmp/html/app/control-panes/dashboard/upload/upload.html
|
||||
msgid "Processing..."
|
||||
msgstr ""
|
||||
|
@ -786,6 +778,7 @@ msgstr ""
|
|||
msgid "Remote debug"
|
||||
msgstr ""
|
||||
|
||||
#: /Users/a12907/STF/stf/tmp/html/app/device-list/device-list.html
|
||||
#: /Users/a12907/STF/stf/tmp/html/app/control-panes/dashboard/browser/browser.html
|
||||
#: /Users/a12907/STF/stf/tmp/html/app/control-panes/dashboard/navigation/navigation.html
|
||||
msgid "Reset"
|
||||
|
@ -861,10 +854,6 @@ msgstr ""
|
|||
msgid "Save..."
|
||||
msgstr ""
|
||||
|
||||
#: /Users/a12907/STF/stf/tmp/html/app/settings/local/local-settings.html
|
||||
msgid "Saved to: {{savedTo}}"
|
||||
msgstr ""
|
||||
|
||||
#: /Users/a12907/STF/stf/res/app/device-list/device-column-service.js
|
||||
msgid "Screen"
|
||||
msgstr ""
|
||||
|
@ -914,10 +903,6 @@ msgstr ""
|
|||
msgid "Show Screen"
|
||||
msgstr ""
|
||||
|
||||
#: /Users/a12907/STF/stf/res/app/control-panes/control-panes-hotkeys-controller.js
|
||||
msgid "Show/Hide device"
|
||||
msgstr ""
|
||||
|
||||
#: /Users/a12907/STF/stf/tmp/html/app/control-panes/advanced/input/input.html
|
||||
msgid "Special Keys"
|
||||
msgstr ""
|
||||
|
@ -961,7 +946,6 @@ msgid "Take Pageshot (Needs WebView running)"
|
|||
msgstr ""
|
||||
|
||||
#: /Users/a12907/STF/stf/tmp/html/app/control-panes/screenshots/screenshots.html
|
||||
#: /Users/a12907/STF/stf/res/app/control-panes/control-panes-hotkeys-controller.js
|
||||
msgid "Take Screenshot"
|
||||
msgstr ""
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue