Merge pull request #160 from cormier/previous-buffer
PR#155 with shortcut added in front page instructions close #155
This commit is contained in:
commit
5b5082dfd4
3 changed files with 24 additions and 5 deletions
|
@ -1021,6 +1021,16 @@ weechat.directive('inputBar', function() {
|
|||
return true;
|
||||
}
|
||||
|
||||
// Alt+< -> switch to previous buffer
|
||||
if ($event.altKey && code === 60) {
|
||||
var previousBuffer = models.getPreviousBuffer();
|
||||
if (previousBuffer) {
|
||||
models.setActiveBuffer(previousBuffer.id);
|
||||
$event.preventDefault();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// Escape -> disconnect
|
||||
if (code === 27) {
|
||||
$event.preventDefault();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue