mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-03-13 08:28:13 -04:00
Add help and configuration for keyboard shortcut.
This commit is contained in:
parent
497918e260
commit
49d434b481
@ -160,6 +160,18 @@
|
|||||||
"options_showInspectMenu": {
|
"options_showInspectMenu": {
|
||||||
"message": "Allow inspecting proxy used for page elements via context menu."
|
"message": "Allow inspecting proxy used for page elements via context menu."
|
||||||
},
|
},
|
||||||
|
"options_group_keyboardShortcut": {
|
||||||
|
"message": "Keyboard Shortcut"
|
||||||
|
},
|
||||||
|
"options_menuShortcutHelp": {
|
||||||
|
"message": "Pressing the shortcut will open the switch popup menu. (Defaults to Alt+Shift+O)."
|
||||||
|
},
|
||||||
|
"options_menuShortcutMore": {
|
||||||
|
"message": "The items in the popup menu can also be accessed using the keyboard. Press ? (or /) in the menu to learn more."
|
||||||
|
},
|
||||||
|
"options_menuShortcutConfigure": {
|
||||||
|
"message": "Configure shortcut"
|
||||||
|
},
|
||||||
"options_group_switchOptions": {
|
"options_group_switchOptions": {
|
||||||
"message": "Switch Options"
|
"message": "Switch Options"
|
||||||
},
|
},
|
||||||
@ -182,7 +194,7 @@
|
|||||||
"message": "Cycled Profiles"
|
"message": "Cycled Profiles"
|
||||||
},
|
},
|
||||||
"options_cycledProfilesHelp": {
|
"options_cycledProfilesHelp": {
|
||||||
"message": "When you click on the icon, the following profiles will be applied in their order."
|
"message": "When you click on the icon (or use the shortcut above), the following profiles will be applied in their order."
|
||||||
},
|
},
|
||||||
"options_cycledProfilesTooFew": {
|
"options_cycledProfilesTooFew": {
|
||||||
"message": "You need to select at least 2 profiles to enable this function! You can drag them from the box below."
|
"message": "You need to select at least 2 profiles to enable this function! You can drag them from the box below."
|
||||||
|
@ -160,6 +160,18 @@
|
|||||||
"options_showInspectMenu": {
|
"options_showInspectMenu": {
|
||||||
"message": "右键菜单中,可检查网页元素所使用的代理。"
|
"message": "右键菜单中,可检查网页元素所使用的代理。"
|
||||||
},
|
},
|
||||||
|
"options_group_keyboardShortcut": {
|
||||||
|
"message": "键盘快捷键"
|
||||||
|
},
|
||||||
|
"options_menuShortcutHelp": {
|
||||||
|
"message": "按下快捷键即可打开弹出菜单来切换情景模式。(默认快捷键: Alt+Shift+O)."
|
||||||
|
},
|
||||||
|
"options_menuShortcutMore": {
|
||||||
|
"message": "弹出菜单中的菜单项也可以用键盘进行选择。在弹出菜单中按下? (问号键,或/斜杠键) 查看帮助。"
|
||||||
|
},
|
||||||
|
"options_menuShortcutConfigure": {
|
||||||
|
"message": "修改快捷键"
|
||||||
|
},
|
||||||
"options_group_switchOptions": {
|
"options_group_switchOptions": {
|
||||||
"message": "切换选项"
|
"message": "切换选项"
|
||||||
},
|
},
|
||||||
@ -182,7 +194,7 @@
|
|||||||
"message": "循环切换以下情景模式:"
|
"message": "循环切换以下情景模式:"
|
||||||
},
|
},
|
||||||
"options_cycledProfilesHelp": {
|
"options_cycledProfilesHelp": {
|
||||||
"message": "点击图标时,依次循环切换到以下情景模式。"
|
"message": "点击图标或按下快捷键时,依次循环切换到以下情景模式。"
|
||||||
},
|
},
|
||||||
"options_cycledProfilesTooFew": {
|
"options_cycledProfilesTooFew": {
|
||||||
"message": "必须至少选择2个情景模式才能进行切换。请从下方框中拖动情景模式到此框。"
|
"message": "必须至少选择2个情景模式才能进行切换。请从下方框中拖动情景模式到此框。"
|
||||||
|
@ -160,6 +160,18 @@
|
|||||||
"options_showInspectMenu": {
|
"options_showInspectMenu": {
|
||||||
"message": "右鍵選單中,可檢查網頁元素所使用的代理。"
|
"message": "右鍵選單中,可檢查網頁元素所使用的代理。"
|
||||||
},
|
},
|
||||||
|
"options_group_keyboardShortcut": {
|
||||||
|
"message": "鍵盤快捷鍵"
|
||||||
|
},
|
||||||
|
"options_menuShortcutHelp": {
|
||||||
|
"message": "按下快捷鍵即可開啟彈出選單來切換情景模式。(預設快捷鍵: Alt+Shift+O)."
|
||||||
|
},
|
||||||
|
"options_menuShortcutMore": {
|
||||||
|
"message": "彈出選單中的選單項也可以用鍵盤進行選擇。在彈出選單中按下? (問號鍵,或/斜槓鍵) 檢視幫助。"
|
||||||
|
},
|
||||||
|
"options_menuShortcutConfigure": {
|
||||||
|
"message": "修改快捷鍵"
|
||||||
|
},
|
||||||
"options_group_switchOptions": {
|
"options_group_switchOptions": {
|
||||||
"message": "切換選項"
|
"message": "切換選項"
|
||||||
},
|
},
|
||||||
@ -182,7 +194,7 @@
|
|||||||
"message": "循環切換以下情景模式:"
|
"message": "循環切換以下情景模式:"
|
||||||
},
|
},
|
||||||
"options_cycledProfilesHelp": {
|
"options_cycledProfilesHelp": {
|
||||||
"message": "點擊圖標時,依次循環切換到以下情景模式。"
|
"message": "點擊圖標或按下快捷鍵時,依次循環切換到以下情景模式。"
|
||||||
},
|
},
|
||||||
"options_cycledProfilesTooFew": {
|
"options_cycledProfilesTooFew": {
|
||||||
"message": "必須至少選擇2個情景模式才能進行切換。請從下方框中拖動情景模式到此框。"
|
"message": "必須至少選擇2個情景模式才能進行切換。請從下方框中拖動情景模式到此框。"
|
||||||
|
@ -160,6 +160,18 @@
|
|||||||
"options_showInspectMenu": {
|
"options_showInspectMenu": {
|
||||||
"message": "右鍵選單中,可檢查網頁元素所使用的代理。"
|
"message": "右鍵選單中,可檢查網頁元素所使用的代理。"
|
||||||
},
|
},
|
||||||
|
"options_group_keyboardShortcut": {
|
||||||
|
"message": "鍵盤快捷鍵"
|
||||||
|
},
|
||||||
|
"options_menuShortcutHelp": {
|
||||||
|
"message": "按下快捷鍵即可開啟彈出選單來切換情景模式。(預設快捷鍵: Alt+Shift+O)."
|
||||||
|
},
|
||||||
|
"options_menuShortcutMore": {
|
||||||
|
"message": "彈出選單中的選單項也可以用鍵盤進行選擇。在彈出選單中按下? (問號鍵,或/斜槓鍵) 檢視幫助。"
|
||||||
|
},
|
||||||
|
"options_menuShortcutConfigure": {
|
||||||
|
"message": "修改快捷鍵"
|
||||||
|
},
|
||||||
"options_group_switchOptions": {
|
"options_group_switchOptions": {
|
||||||
"message": "切換選項"
|
"message": "切換選項"
|
||||||
},
|
},
|
||||||
@ -182,7 +194,7 @@
|
|||||||
"message": "迴圈切換以下情景模式:"
|
"message": "迴圈切換以下情景模式:"
|
||||||
},
|
},
|
||||||
"options_cycledProfilesHelp": {
|
"options_cycledProfilesHelp": {
|
||||||
"message": "點選圖示時,依次迴圈切換到以下情景模式。"
|
"message": "點選圖示或按下快捷鍵時,依次迴圈切換到以下情景模式。"
|
||||||
},
|
},
|
||||||
"options_cycledProfilesTooFew": {
|
"options_cycledProfilesTooFew": {
|
||||||
"message": "必須至少選擇2個情景模式才能進行切換。請從下方框中拖動情景模式到此框。"
|
"message": "必須至少選擇2個情景模式才能進行切換。請從下方框中拖動情景模式到此框。"
|
||||||
|
@ -136,6 +136,8 @@ angular.module('omegaTarget', []).factory 'omegaTarget', ($q) ->
|
|||||||
return d.promise
|
return d.promise
|
||||||
openManage: ->
|
openManage: ->
|
||||||
chrome.tabs.create url: 'chrome://extensions/?id=' + chrome.runtime.id
|
chrome.tabs.create url: 'chrome://extensions/?id=' + chrome.runtime.id
|
||||||
|
openShortcutConfig: ->
|
||||||
|
chrome.tabs.create url: 'chrome://extensions/configureCommands'
|
||||||
setOptionsSync: (enabled, args) ->
|
setOptionsSync: (enabled, args) ->
|
||||||
callBackground('setOptionsSync', enabled, args)
|
callBackground('setOptionsSync', enabled, args)
|
||||||
|
|
||||||
|
@ -293,6 +293,8 @@ angular.module('omega').controller 'MasterCtrl', ($scope, $rootScope, $window,
|
|||||||
$scope.downloadIntervalI18n = (interval) ->
|
$scope.downloadIntervalI18n = (interval) ->
|
||||||
"options_downloadInterval_" + (if interval < 0 then "never" else interval)
|
"options_downloadInterval_" + (if interval < 0 then "never" else interval)
|
||||||
|
|
||||||
|
$scope.openShortcutConfig = omegaTarget.openShortcutConfig.bind(omegaTarget)
|
||||||
|
|
||||||
omegaTarget.refresh()
|
omegaTarget.refresh()
|
||||||
|
|
||||||
omegaTarget.state('firstRun').then (firstRun) ->
|
omegaTarget.state('firstRun').then (firstRun) ->
|
||||||
|
@ -16,7 +16,7 @@ div(ng-controller='PacProfileCtrl')
|
|||||||
| #[span.glyphicon.glyphicon-download-alt] {{'options_downloadProfileNow' | tr}}
|
| #[span.glyphicon.glyphicon-download-alt] {{'options_downloadProfileNow' | tr}}
|
||||||
section.settings-group
|
section.settings-group
|
||||||
h3
|
h3
|
||||||
{{'options_group_pacScript' | tr}}
|
| {{'options_group_pacScript' | tr}}
|
||||||
= ' '
|
= ' '
|
||||||
button.btn.btn-xs.proxy-auth-toggle(ng-class='profile.auth["all"] ? "btn-success" : "btn-default"'
|
button.btn.btn-xs.proxy-auth-toggle(ng-class='profile.auth["all"] ? "btn-success" : "btn-default"'
|
||||||
type='button' role='button' ng-click='editProxyAuth()' title='{{"options_proxy_auth" | tr}}')
|
type='button' role='button' ng-click='editProxyAuth()' title='{{"options_proxy_auth" | tr}}')
|
||||||
|
@ -14,6 +14,17 @@ section.settings-group
|
|||||||
label
|
label
|
||||||
input(type='checkbox' ng-model='options["-showInspectMenu"]')
|
input(type='checkbox' ng-model='options["-showInspectMenu"]')
|
||||||
span {{'options_showInspectMenu' | tr}}
|
span {{'options_showInspectMenu' | tr}}
|
||||||
|
section.settings-group
|
||||||
|
h3 {{'options_group_keyboardShortcut' | tr}}
|
||||||
|
p
|
||||||
|
button.btn.btn-default(type='button' role='button' ng-click='openShortcutConfig()')
|
||||||
|
span.glyphicon.glyphicon-share-alt
|
||||||
|
= ' '
|
||||||
|
| {{'options_menuShortcutConfigure' | tr}}
|
||||||
|
= ' '
|
||||||
|
| {{'options_menuShortcutHelp' | tr}}
|
||||||
|
p.help-block
|
||||||
|
| {{'options_menuShortcutMore' | tr}}
|
||||||
section.settings-group
|
section.settings-group
|
||||||
h3 {{'options_group_switchOptions' | tr}}
|
h3 {{'options_group_switchOptions' | tr}}
|
||||||
div.form-group
|
div.form-group
|
||||||
|
Loading…
Reference in New Issue
Block a user