-
diff --git a/src/components/shortcuts/MenuAccelerators.tsx b/src/components/shortcuts/MenuAccelerators.tsx
index ef2f241a..1b6ce082 100644
--- a/src/components/shortcuts/MenuAccelerators.tsx
+++ b/src/components/shortcuts/MenuAccelerators.tsx
@@ -170,6 +170,13 @@ class MenuAcceleratorsClass extends React.Component
{
}
};
+ onToggleSplitView = () => {
+ if (this.appState.isExplorer) {
+ const winState = this.appState.winStates[0];
+ winState.toggleSplitViewMode();
+ }
+ }
+
renderMenuAccelerators() {
return (
@@ -217,6 +224,10 @@ class MenuAcceleratorsClass extends React.Component {
combo="CmdOrCtrl+W"
onClick={this.onCloseTab}
>
+
);
}
diff --git a/src/electron/appMenus.ts b/src/electron/appMenus.ts
index 8f0e56bd..c587c835 100644
--- a/src/electron/appMenus.ts
+++ b/src/electron/appMenus.ts
@@ -149,6 +149,12 @@ export class AppMenu {
{
label: menuStrings['TITLE_VIEW'],
submenu: [
+ {
+ label: menuStrings['TOGGLE_SPLITVIEW'],
+ accelerator: 'CmdOrCtrl+Shift+Alt+V',
+ click: this.sendComboEvent
+ },
+ { type: 'separator' },
{
label: menuStrings['RELOAD_VIEW'],
accelerator: 'CmdOrCtrl+R',
diff --git a/src/locale/lang/en.json b/src/locale/lang/en.json
index 795f76c3..47ab3590 100644
--- a/src/locale/lang/en.json
+++ b/src/locale/lang/en.json
@@ -15,7 +15,7 @@
"TRANSFERS": "Transfers",
"PREFS": "Preferences",
"SHORTCUTS": "Keyboard shortcuts",
- "SPLITVIEW": "Toggle dual view"
+ "SPLITVIEW": "Toggle split view"
},
"DRAG": {
"MULTIPLE": "Copy {{count}} elements"
@@ -244,7 +244,8 @@
"SELECT_PREVIOUS_TAB": "Select previous tab",
"NEW_TAB": "New tab",
"CLOSE_TAB": "Close tab",
- "OK": "OK"
+ "OK": "OK",
+ "TOGGLE_SPLITVIEW": "Toggle Split View"
}
}
}
\ No newline at end of file
diff --git a/src/locale/lang/fr.json b/src/locale/lang/fr.json
index 3b5d70c3..81ae7e19 100644
--- a/src/locale/lang/fr.json
+++ b/src/locale/lang/fr.json
@@ -15,7 +15,7 @@
"TRANSFERS": "Téléchargements",
"PREFS": "Préférences",
"SHORTCUTS": "Raccourcis clavier",
- "SPLITVIEW": "Alterner entre double vue et vue unique"
+ "SPLITVIEW": "Activer/Désactiver double vue"
},
"DRAG": {
"MULTIPLE": "Copier {{count}} éléments"
@@ -244,7 +244,8 @@
"SELECT_PREVIOUS_TAB": "Sélectionner l'onglet précédent",
"NEW_TAB": "Nouvel onglet",
"CLOSE_TAB": "Fermer l'onglet",
- "OK": "OK"
+ "OK": "OK",
+ "TOGGLE_SPLITVIEW": "Activer/Désactiver Vue Double"
}
}
}
\ No newline at end of file
diff --git a/src/services/plugins/FsGeneric.ts b/src/services/plugins/FsGeneric.ts
index 101c2ca1..42647ed1 100644
--- a/src/services/plugins/FsGeneric.ts
+++ b/src/services/plugins/FsGeneric.ts
@@ -15,7 +15,7 @@ class GenericApi implements FsApi {
}
join(...paths: string[]): string {
- return this.join(...paths);
+ return paths.join('/');
}
isConnected(): boolean {
@@ -31,21 +31,6 @@ class GenericApi implements FsApi {
return Promise.resolve(10);
}
- // copy(source: string, files: string[], dest: string): Promise & cp.ProgressEmitter {
- // console.log('Generic.copy');
- // const prom: Promise & cp.ProgressEmitter = new Promise((resolve, reject) => {
- // setTimeout(() => {
- // resolve();
- // }, 2000);
- // }) as Promise & cp.ProgressEmitter;
-
- // prom.on = (name, handler): Promise => {
- // return prom;
- // }
-
- // return prom;
- // }
-
login(server?: string, credentials?: ICredentials): Promise {
return Promise.resolve();
}