Let the browser handle paste keyboard shortcuts

Related to #413
This commit is contained in:
Johannes Zellner
2017-08-31 20:30:09 +02:00
parent 57d5c2cc47
commit 6eb6eab3f4

View File

@@ -247,6 +247,11 @@ angular.module('Application').controller('DebugController', ['$scope', '$locatio
if ($scope.terminalVisible) $scope.showTerminal(true);
}, 1000);
};
// Let the browser handle paste
$scope.terminal.attachCustomKeyEventHandler(function (e) {
if (e.key === 'v' && (e.ctrlKey || e.metaKey)) return false;
});
} catch (e) {
console.error(e);
}