madrobby/keymaster

Ctrl + left hot key works uncorrect in Opera browser

k-makarov opened this issue · 1 comments

When I use this hotkey it activate js bind function and also activate browser`s "Go back"

sorry guys. Forgot about .preeventDefault().

            key('ctrl+left', function (e) {
                e.preventDefault(); //add this
                $scope.configBackClick();
                if (!$scope.$$phase) {
                    $scope.$apply();
                }
            });