diff options
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/commands.coffee | 4 | ||||
| -rw-r--r-- | background_scripts/main.coffee | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee index 50302cf7..35c94bb9 100644 --- a/background_scripts/commands.coffee +++ b/background_scripts/commands.coffee @@ -161,6 +161,8 @@ defaultKeyMappings = "J": "previousTab" "gt": "nextTab" "gT": "previousTab" + "<<": "moveTabLeft" + ">>": "moveTabRight" "g0": "firstTab" "g$": "lastTab" @@ -170,7 +172,7 @@ defaultKeyMappings = "x": "removeTab" "X": "restoreTab" - ".": "togglePinTab" + "<a-p>": "togglePinTab" "o": "Vomnibar.activate" "O": "Vomnibar.activateInNewTab" diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 072745d7..93ef1449 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -248,9 +248,8 @@ BackgroundCommands = chrome.tabs.remove(tab.id)) restoreTab: (callback) -> # TODO: remove if-else -block when adopted into stable - if chrome.sessionRestore - chrome.sessionRestore.getRecentlyClosed((closed) -> - chrome.sessionRestore.restore(closed[0])) + if chrome.sessions + chrome.sessions.restore(null, (restoredSession) -> callback()) else # TODO(ilya): Should this be getLastFocused instead? chrome.windows.getCurrent((window) -> |
