Skip to content

Commit

Permalink
[core] Add shortcuts for browser tab switch
Browse files Browse the repository at this point in the history
Before, it was set to just `ctrl+tab`, but this doesn't work in browsers.
Add `ctrl+alt+a` and `ctrl+alt+d` in order to switch between tabs.

Fix eclipse-theia#492 eclipse-theia#1891

Signed-off-by: Paul Maréchal <paul.marechal@ericsson.com>
Signed-off-by: Bogdan Stolojan <petre.stolojan@arm.com>
  • Loading branch information
paul-marechal authored and Bogdan Stolojan committed Jan 21, 2019
1 parent 839dadd commit 0cab934
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

## v0.3.17
- [plug-in] added `languages.registerCodeLensProvider` Plug-in API
- [core] `ctrl+alt+a` and `ctrl+alt+d` to switch tabs left/right


## v0.3.16
- [plug-in] added `DocumentLinkProvider` Plug-in API
- [plug-in] Terminal.sendText API adds a new line to the text being sent to the terminal if `addNewLine` parameter wasn't specified
- Reverted [cpp] Add debugging for C/C++ programs. This feature will come back in its own cpp-specific repo
- Reverted [cpp] Add debugging for C/C++ programs. This feature will come back in its own cpp-specific repo
- [core] Add methods to unregister menus, commands and keybindings
- [terminal] Add 'open in terminal' to navigator
- [markers] Added ability to remove markers
Expand All @@ -20,7 +21,7 @@
## v0.3.15
- [plug-in] added `menus` contribution point
- [cpp] Add debugging for C/C++ programs
- View Keybindings Widget - used to view and search keybindings
- View Keybindings Widget - used to view and search keybindings
- multi-root workspace support, vsCode compatibility
- Add TCL grammar file
- [debug] resolve variables in configurations
Expand All @@ -30,7 +31,7 @@

## v0.3.13
- [cpp] Add a status bar button to select an active cpp build configuration
- Recently opened workspaces history
- Recently opened workspaces history
- [git/blame] convert to toggle command
- [cpp] Watch changes to compile_commands.json
- [ts] one ls for all js related languages
Expand Down
12 changes: 12 additions & 0 deletions packages/core/src/browser/common-frontend-contribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ export class CommonFrontendContribution implements MenuContribution, CommandCont
});
}
registry.registerKeybindings(
// Edition
{
command: CommonCommands.UNDO.id,
keybinding: 'ctrlcmd+z'
Expand All @@ -452,14 +453,23 @@ export class CommonFrontendContribution implements MenuContribution, CommandCont
command: CommonCommands.REPLACE.id,
keybinding: 'ctrlcmd+alt+f'
},
// Tabs
{
command: CommonCommands.NEXT_TAB.id,
keybinding: 'ctrlcmd+tab'
},
{
command: CommonCommands.NEXT_TAB.id,
keybinding: 'ctrlcmd+alt+d'
},
{
command: CommonCommands.PREVIOUS_TAB.id,
keybinding: 'ctrlcmd+shift+tab'
},
{
command: CommonCommands.PREVIOUS_TAB.id,
keybinding: 'ctrlcmd+alt+a'
},
{
command: CommonCommands.CLOSE_TAB.id,
keybinding: 'alt+w'
Expand All @@ -472,6 +482,7 @@ export class CommonFrontendContribution implements MenuContribution, CommandCont
command: CommonCommands.CLOSE_ALL_TABS.id,
keybinding: 'alt+shift+w'
},
// Panels
{
command: CommonCommands.COLLAPSE_PANEL.id,
keybinding: 'alt+c'
Expand All @@ -484,6 +495,7 @@ export class CommonFrontendContribution implements MenuContribution, CommandCont
command: CommonCommands.COLLAPSE_ALL_PANELS.id,
keybinding: 'alt+shift+c',
},
// Saving
{
command: CommonCommands.SAVE.id,
keybinding: 'ctrlcmd+s'
Expand Down

0 comments on commit 0cab934

Please sign in to comment.