mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
65eaddb321
commit
1d649283cf
@ -124,7 +124,7 @@ var NWHostActions = actions.Actions({
|
|||||||
// XXX add ability to use devtools on background page (node context)...
|
// XXX add ability to use devtools on background page (node context)...
|
||||||
// XXX get the devtools stage...
|
// XXX get the devtools stage...
|
||||||
showDevTools: ['Interface|Development/Show Dev Tools',
|
showDevTools: ['Interface|Development/Show Dev Tools',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
function(action){
|
function(action){
|
||||||
if(action == '?'){
|
if(action == '?'){
|
||||||
// XXX get the devtools stage...
|
// XXX get the devtools stage...
|
||||||
@ -145,7 +145,7 @@ var NWHostActions = actions.Actions({
|
|||||||
}],
|
}],
|
||||||
|
|
||||||
toggleSplashScreen: ['Interface/',
|
toggleSplashScreen: ['Interface/',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
function(){
|
function(){
|
||||||
}],
|
}],
|
||||||
})
|
})
|
||||||
@ -246,7 +246,7 @@ var ElectronHostActions = actions.Actions({
|
|||||||
|
|
||||||
// XXX should this be a toggler???
|
// XXX should this be a toggler???
|
||||||
showDevTools: ['Interface|Development/Show Dev Tools',
|
showDevTools: ['Interface|Development/Show Dev Tools',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
function(action){
|
function(action){
|
||||||
var w = electron.remote.getCurrentWindow()
|
var w = electron.remote.getCurrentWindow()
|
||||||
|
|
||||||
@ -277,7 +277,7 @@ var ElectronHostActions = actions.Actions({
|
|||||||
|
|
||||||
// XXX make this a real toggler...
|
// XXX make this a real toggler...
|
||||||
toggleSplashScreen: ['Interface/',
|
toggleSplashScreen: ['Interface/',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
function(action){
|
function(action){
|
||||||
var splash = this.splash = (!this.splash || this.splash.isDestroyed()) ?
|
var splash = this.splash = (!this.splash || this.splash.isDestroyed()) ?
|
||||||
electron.remote.getGlobal('splash')
|
electron.remote.getGlobal('splash')
|
||||||
@ -560,7 +560,7 @@ var WindowedAppControlActions = actions.Actions({
|
|||||||
}],
|
}],
|
||||||
|
|
||||||
toggleSplashScreenShowing: ['Interface/Splash screen on start',
|
toggleSplashScreenShowing: ['Interface/Splash screen on start',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
core.makeConfigToggler('show-splash-screen',
|
core.makeConfigToggler('show-splash-screen',
|
||||||
['on', 'off'],
|
['on', 'off'],
|
||||||
function(action){
|
function(action){
|
||||||
|
|||||||
@ -832,7 +832,7 @@ actions.Actions({
|
|||||||
|
|
||||||
// NOTE: resetting this option will clear the last direction...
|
// NOTE: resetting this option will clear the last direction...
|
||||||
toggleShiftsAffectDirection: ['Interface/Shifts affect direction',
|
toggleShiftsAffectDirection: ['Interface/Shifts affect direction',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
core.makeConfigToggler('shifts-affect-direction',
|
core.makeConfigToggler('shifts-affect-direction',
|
||||||
['off', 'on'],
|
['off', 'on'],
|
||||||
function(action){
|
function(action){
|
||||||
|
|||||||
@ -1282,7 +1282,7 @@ var CollectionActions = actions.Actions({
|
|||||||
// Config and interface stuff...
|
// Config and interface stuff...
|
||||||
//
|
//
|
||||||
toggleCollectionCropRetention: ['Interface/Collection crop save mode',
|
toggleCollectionCropRetention: ['Interface/Collection crop save mode',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
core.makeConfigToggler(
|
core.makeConfigToggler(
|
||||||
'collection-save-crop-state',
|
'collection-save-crop-state',
|
||||||
[
|
[
|
||||||
|
|||||||
@ -352,7 +352,7 @@ var LocationActions = actions.Actions({
|
|||||||
core.doc`Toggle index synchronization method
|
core.doc`Toggle index synchronization method
|
||||||
|
|
||||||
NOTE: this will not show disabled methods.`,
|
NOTE: this will not show disabled methods.`,
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
toggler.Toggler(null,
|
toggler.Toggler(null,
|
||||||
function(_, state){
|
function(_, state){
|
||||||
var dict = this.location_sync_methods
|
var dict = this.location_sync_methods
|
||||||
|
|||||||
@ -28,7 +28,7 @@ var PreCacheActions = actions.Actions({
|
|||||||
// NOTE: this will not work from chrome when loading from a local fs...
|
// NOTE: this will not work from chrome when loading from a local fs...
|
||||||
// XXX experimental...
|
// XXX experimental...
|
||||||
startCacheWorker: ['Interface/',
|
startCacheWorker: ['Interface/',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
function(){
|
function(){
|
||||||
// a worker is started already...
|
// a worker is started already...
|
||||||
if(this.cacheWorker != null){
|
if(this.cacheWorker != null){
|
||||||
@ -63,7 +63,7 @@ var PreCacheActions = actions.Actions({
|
|||||||
this.cacheWorker.url = url
|
this.cacheWorker.url = url
|
||||||
}],
|
}],
|
||||||
stopCacheWorker: ['Interface/',
|
stopCacheWorker: ['Interface/',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
function(){
|
function(){
|
||||||
if(this.cacheWorker){
|
if(this.cacheWorker){
|
||||||
this.cacheWorker.terminate()
|
this.cacheWorker.terminate()
|
||||||
|
|||||||
@ -893,12 +893,12 @@ var StatusLogActions = actions.Actions({
|
|||||||
|
|
||||||
// XXX should this be here or in a separate feature???
|
// XXX should this be here or in a separate feature???
|
||||||
statusLog: ['Interface/Show status log',
|
statusLog: ['Interface/Show status log',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
function(){
|
function(){
|
||||||
// XXX use list
|
// XXX use list
|
||||||
}],
|
}],
|
||||||
clearStatusLog: ['Interface/Clear status log',
|
clearStatusLog: ['Interface/Clear status log',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
function(){
|
function(){
|
||||||
delete this.__status_log
|
delete this.__status_log
|
||||||
}],
|
}],
|
||||||
|
|||||||
@ -904,7 +904,7 @@ var DialogsActions = actions.Actions({
|
|||||||
|
|
||||||
|
|
||||||
listDialogs: ['Interface|System/Dialog/Dialog list...',
|
listDialogs: ['Interface|System/Dialog/Dialog list...',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
makeUIDialog(function(){
|
makeUIDialog(function(){
|
||||||
var actions = this
|
var actions = this
|
||||||
|
|
||||||
@ -931,7 +931,7 @@ var DialogsActions = actions.Actions({
|
|||||||
})],
|
})],
|
||||||
|
|
||||||
toggleOverlayBlur: ['Interface/Dialog overlay blur',
|
toggleOverlayBlur: ['Interface/Dialog overlay blur',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
toggler.CSSClassToggler(
|
toggler.CSSClassToggler(
|
||||||
function(){ return this.dom },
|
function(){ return this.dom },
|
||||||
'overlay-blur-enabled',
|
'overlay-blur-enabled',
|
||||||
@ -2587,7 +2587,7 @@ var BrowseActionsActions = actions.Actions({
|
|||||||
// ...this would help with the (global) search -- switch to
|
// ...this would help with the (global) search -- switch to
|
||||||
// flat if searching in root mode...
|
// flat if searching in root mode...
|
||||||
browseActions: ['Interface/Dialog/Actions...',
|
browseActions: ['Interface/Dialog/Actions...',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
core.doc`Browse actions dialog...
|
core.doc`Browse actions dialog...
|
||||||
|
|
||||||
This uses action definition to build and present an action tree.
|
This uses action definition to build and present an action tree.
|
||||||
@ -2949,6 +2949,31 @@ var BrowseActionsActions = actions.Actions({
|
|||||||
this.keyboard.handler('General', 'ctrl-a', 'toggleAdvanced')
|
this.keyboard.handler('General', 'ctrl-a', 'toggleAdvanced')
|
||||||
}) })],
|
}) })],
|
||||||
|
|
||||||
|
// XXX revise...
|
||||||
|
advancedBrowseModeAction: ['- System/',
|
||||||
|
core.doc`Placeholder advanced action
|
||||||
|
|
||||||
|
This is mainly used to indicate other actions as advanced mode only.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
someAction: ['Menu/Path/Some action',
|
||||||
|
// show up only in advanced browse mode...
|
||||||
|
{mode: 'advancedBrowseModeAction'},
|
||||||
|
function(){
|
||||||
|
...
|
||||||
|
}],
|
||||||
|
`,
|
||||||
|
{mode: function(){
|
||||||
|
return this.advancedBrowseModeAction() }},
|
||||||
|
core.notUserCallable(function(){
|
||||||
|
// Placeholder action, not for direct use...
|
||||||
|
//
|
||||||
|
// See doc for more info:
|
||||||
|
// .showDoc('advancedBrowseModeAction')
|
||||||
|
return this.config['browse-advanced-mode'] != 'on'
|
||||||
|
&& 'hidden'
|
||||||
|
|| 'visible' })],
|
||||||
|
|
||||||
toggleBrowseAdvanced: ['System|Interface/-99: Advanced menu items',
|
toggleBrowseAdvanced: ['System|Interface/-99: Advanced menu items',
|
||||||
core.doc`Toggle advanced menu items...
|
core.doc`Toggle advanced menu items...
|
||||||
|
|
||||||
@ -2958,7 +2983,7 @@ var BrowseActionsActions = actions.Actions({
|
|||||||
- return 'hidden' when needed
|
- return 'hidden' when needed
|
||||||
or:
|
or:
|
||||||
- link to an action that behaves in a desired way:
|
- link to an action that behaves in a desired way:
|
||||||
{mode: 'toggleBrowseActionKeys',}
|
{mode: 'advancedBrowseModeAction',}
|
||||||
|
|
||||||
See .toggleBrowseActionKeys(..) for an example.
|
See .toggleBrowseActionKeys(..) for an example.
|
||||||
`,
|
`,
|
||||||
@ -2967,8 +2992,7 @@ var BrowseActionsActions = actions.Actions({
|
|||||||
['off', 'on'])],
|
['off', 'on'])],
|
||||||
|
|
||||||
toggleBrowseActionKeys: ['Interface/Show keys in menu',
|
toggleBrowseActionKeys: ['Interface/Show keys in menu',
|
||||||
{mode: function(){
|
{mode: 'advancedBrowseModeAction'},
|
||||||
return this.config['browse-advanced-mode'] != 'on' && 'hidden' }},
|
|
||||||
core.makeConfigToggler(
|
core.makeConfigToggler(
|
||||||
'browse-actions-keys',
|
'browse-actions-keys',
|
||||||
['on', 'off'],
|
['on', 'off'],
|
||||||
@ -3013,7 +3037,7 @@ module.ContextActionMenu = core.ImageGridFeatures.Feature({
|
|||||||
|
|
||||||
actions: actions.Actions({
|
actions: actions.Actions({
|
||||||
showContextMenu: ['Interface/Show context menu...',
|
showContextMenu: ['Interface/Show context menu...',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
uiDialog(function(){
|
uiDialog(function(){
|
||||||
return this.current ?
|
return this.current ?
|
||||||
this.browseActions('/Image/')
|
this.browseActions('/Image/')
|
||||||
@ -3172,13 +3196,13 @@ var ButtonsActions = actions.Actions({
|
|||||||
},
|
},
|
||||||
|
|
||||||
toggleMainButtons: ['Interface/Main buttons',
|
toggleMainButtons: ['Interface/Main buttons',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
makeButtonControlsToggler('main-buttons')],
|
makeButtonControlsToggler('main-buttons')],
|
||||||
toggleSecondaryButtons: ['Interface/Secondary buttons',
|
toggleSecondaryButtons: ['Interface/Secondary buttons',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
makeButtonControlsToggler('secondary-buttons')],
|
makeButtonControlsToggler('secondary-buttons')],
|
||||||
toggleAppButtons: ['Interface/App buttons',
|
toggleAppButtons: ['Interface/App buttons',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
makeButtonControlsToggler('app-buttons')],
|
makeButtonControlsToggler('app-buttons')],
|
||||||
|
|
||||||
toggleSideButtons: ['Interface/70: Touch buttons',
|
toggleSideButtons: ['Interface/70: Touch buttons',
|
||||||
@ -3195,7 +3219,7 @@ var ButtonsActions = actions.Actions({
|
|||||||
})()],
|
})()],
|
||||||
|
|
||||||
toggleButtonHighlightColor: ['Interface/Theme/Button highlight color',
|
toggleButtonHighlightColor: ['Interface/Theme/Button highlight color',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
core.makeConfigToggler(
|
core.makeConfigToggler(
|
||||||
'button-highlight-color',
|
'button-highlight-color',
|
||||||
function(){ return this.config['button-highlight-colors'] },
|
function(){ return this.config['button-highlight-colors'] },
|
||||||
|
|||||||
@ -361,7 +361,7 @@ module.ViewerActions = actions.Actions({
|
|||||||
.centerImage(target)
|
.centerImage(target)
|
||||||
.centerRibbon(target) }],
|
.centerRibbon(target) }],
|
||||||
alignRibbons: ['Interface/Align ribbons',
|
alignRibbons: ['Interface/Align ribbons',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
function(target, scale, now){
|
function(target, scale, now){
|
||||||
if(target == 'now'){
|
if(target == 'now'){
|
||||||
now = true
|
now = true
|
||||||
@ -392,7 +392,7 @@ module.ViewerActions = actions.Actions({
|
|||||||
// XXX skip off-screen ribbons (???)
|
// XXX skip off-screen ribbons (???)
|
||||||
// XXX should the timeout be configurable???
|
// XXX should the timeout be configurable???
|
||||||
alignByOrder: ['Interface/Align ribbons by image order',
|
alignByOrder: ['Interface/Align ribbons by image order',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
function(target, scale, now){
|
function(target, scale, now){
|
||||||
if(target == 'now'){
|
if(target == 'now'){
|
||||||
now = true
|
now = true
|
||||||
@ -457,7 +457,7 @@ module.ViewerActions = actions.Actions({
|
|||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
alignByFirst: ['Interface/Align ribbons except current to first image',
|
alignByFirst: ['Interface/Align ribbons except current to first image',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
function(target){
|
function(target){
|
||||||
target = target == 'now' ? null : target
|
target = target == 'now' ? null : target
|
||||||
|
|
||||||
@ -656,7 +656,7 @@ module.ViewerActions = actions.Actions({
|
|||||||
// XXX make this play nice with crops...
|
// XXX make this play nice with crops...
|
||||||
// ...should this be a crop???
|
// ...should this be a crop???
|
||||||
toggleRibbonList: ['Interface|Ribbon/Ribbons as images view',
|
toggleRibbonList: ['Interface|Ribbon/Ribbons as images view',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
function(){
|
function(){
|
||||||
if(this._full_data == null){
|
if(this._full_data == null){
|
||||||
// XXX do a better name here...
|
// XXX do a better name here...
|
||||||
@ -697,7 +697,7 @@ module.ViewerActions = actions.Actions({
|
|||||||
function(angle){ }],
|
function(angle){ }],
|
||||||
|
|
||||||
toggleImageRendering: ['Interface/Image rendering',
|
toggleImageRendering: ['Interface/Image rendering',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
toggler.CSSClassToggler(
|
toggler.CSSClassToggler(
|
||||||
function(){ return this.dom },
|
function(){ return this.dom },
|
||||||
['crisp-resize', 'default-resize'],
|
['crisp-resize', 'default-resize'],
|
||||||
@ -936,7 +936,7 @@ module.Cursor = core.ImageGridFeatures.Feature({
|
|||||||
|
|
||||||
actions: actions.Actions({
|
actions: actions.Actions({
|
||||||
toggleHiddenCursor: ['Interface/Cursor hidden',
|
toggleHiddenCursor: ['Interface/Cursor hidden',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
toggler.CSSClassToggler(
|
toggler.CSSClassToggler(
|
||||||
function(){ return this.dom },
|
function(){ return this.dom },
|
||||||
'cursor-hidden',
|
'cursor-hidden',
|
||||||
@ -1011,7 +1011,7 @@ module.Cursor = core.ImageGridFeatures.Feature({
|
|||||||
// .config['cursor-show-threshold']
|
// .config['cursor-show-threshold']
|
||||||
//
|
//
|
||||||
toggleAutoHideCursor: ['Interface/Cursor auto-hide',
|
toggleAutoHideCursor: ['Interface/Cursor auto-hide',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
toggler.CSSClassToggler(
|
toggler.CSSClassToggler(
|
||||||
function(){ return this.dom },
|
function(){ return this.dom },
|
||||||
'cursor-autohide',
|
'cursor-autohide',
|
||||||
@ -1127,13 +1127,13 @@ module.Cursor = core.ImageGridFeatures.Feature({
|
|||||||
})],
|
})],
|
||||||
|
|
||||||
toggleAutoHideCursorTimeout: ['Interface/Hide cursor on timeout',
|
toggleAutoHideCursorTimeout: ['Interface/Hide cursor on timeout',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
core.makeConfigToggler('cursor-autohide-on-timeout',
|
core.makeConfigToggler('cursor-autohide-on-timeout',
|
||||||
['on', 'off'],
|
['on', 'off'],
|
||||||
function(){
|
function(){
|
||||||
this.toggleAutoHideCursor('!') })],
|
this.toggleAutoHideCursor('!') })],
|
||||||
toggleAutoHideCursorKeyboard: ['Interface/Hide cursor on keyboard',
|
toggleAutoHideCursorKeyboard: ['Interface/Hide cursor on keyboard',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
core.makeConfigToggler('cursor-autohide-on-keyboard',
|
core.makeConfigToggler('cursor-autohide-on-keyboard',
|
||||||
['on', 'off'],
|
['on', 'off'],
|
||||||
function(){
|
function(){
|
||||||
@ -1224,7 +1224,7 @@ var ControlActions = actions.Actions({
|
|||||||
from reaching the viewer.
|
from reaching the viewer.
|
||||||
|
|
||||||
NOTE: this defines the focus/blur handlers on the window object.`,
|
NOTE: this defines the focus/blur handlers on the window object.`,
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
core.makeConfigToggler('lock-unfocused',
|
core.makeConfigToggler('lock-unfocused',
|
||||||
['off', 'on'],
|
['off', 'on'],
|
||||||
function(state){
|
function(state){
|
||||||
@ -1378,7 +1378,7 @@ var ControlActions = actions.Actions({
|
|||||||
// XXX depends on .ribbons...
|
// XXX depends on .ribbons...
|
||||||
// XXX uses: .focusImage(..)
|
// XXX uses: .focusImage(..)
|
||||||
toggleImageClickHandling: ['Interface/Image click handling',
|
toggleImageClickHandling: ['Interface/Image click handling',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
toggler.Toggler(null,
|
toggler.Toggler(null,
|
||||||
function(_, new_state){
|
function(_, new_state){
|
||||||
return new_state ?
|
return new_state ?
|
||||||
@ -1631,7 +1631,7 @@ var ControlActions = actions.Actions({
|
|||||||
// XXX depends on .ribbons...
|
// XXX depends on .ribbons...
|
||||||
// XXX uses: .focusImage(..)
|
// XXX uses: .focusImage(..)
|
||||||
toggleRibbonPanHandling: ['Interface/Ribbon pan handling',
|
toggleRibbonPanHandling: ['Interface/Ribbon pan handling',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
toggler.Toggler(null,
|
toggler.Toggler(null,
|
||||||
function(_, new_state){
|
function(_, new_state){
|
||||||
return new_state ?
|
return new_state ?
|
||||||
@ -1871,7 +1871,7 @@ var ControlActions = actions.Actions({
|
|||||||
// XXX depends on .ribbons...
|
// XXX depends on .ribbons...
|
||||||
// XXX uses: .focusImage(..)
|
// XXX uses: .focusImage(..)
|
||||||
toggleMouseWheelHandling: ['Interface/Mouse wheel handling',
|
toggleMouseWheelHandling: ['Interface/Mouse wheel handling',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
toggler.Toggler(null,
|
toggler.Toggler(null,
|
||||||
function(_, new_state){
|
function(_, new_state){
|
||||||
return new_state ?
|
return new_state ?
|
||||||
@ -1976,7 +1976,7 @@ var ControlActions = actions.Actions({
|
|||||||
})],
|
})],
|
||||||
|
|
||||||
togglePinchHandling: ['Interface/Pinch zoom handling',
|
togglePinchHandling: ['Interface/Pinch zoom handling',
|
||||||
{mode: 'toggleBrowseActionKeys'},
|
{mode: 'advancedBrowseModeAction'},
|
||||||
function(){
|
function(){
|
||||||
// XXX
|
// XXX
|
||||||
}],
|
}],
|
||||||
@ -1986,7 +1986,7 @@ var ControlActions = actions.Actions({
|
|||||||
// ...allow ui features to control this...
|
// ...allow ui features to control this...
|
||||||
// XXX depends on .ribbons...
|
// XXX depends on .ribbons...
|
||||||
toggleSwipeHandling: ['Interface/Swipe handling',
|
toggleSwipeHandling: ['Interface/Swipe handling',
|
||||||
//{mode: 'toggleBrowseActionKeys'},
|
//{mode: 'advancedBrowseModeAction'},
|
||||||
toggler.Toggler(null,
|
toggler.Toggler(null,
|
||||||
function(_, state){
|
function(_, state){
|
||||||
return state ?
|
return state ?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user