Do not handle keypress when not connected
This commit is contained in:
parent
07481825e1
commit
1eee866347
1 changed files with 5 additions and 0 deletions
|
@ -609,6 +609,11 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
|
|||
}
|
||||
|
||||
$scope.handleKeyPress = function($event) {
|
||||
// don't do anything if not connected
|
||||
if (!$rootScope.connected) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Support different browser quirks
|
||||
var code = $event.keyCode ? $event.keyCode : $event.charCode;
|
||||
|
||||
|
|
Loading…
Reference in a new issue