diff --git a/src/input.handler.ts b/src/input.handler.ts index fda736e..b3693ee 100644 --- a/src/input.handler.ts +++ b/src/input.handler.ts @@ -112,6 +112,23 @@ export class InputHandler { return; } + //Copy/Cut, call the right methods + if(event.charCode == 118 && event.ctrlKey) + { + this.handlePaste(event); + return; + } + + if(event.charCode == 120 && event.ctrlKey) + { + this.handleCut(event); + return; + } + + //Paste. Nothing to do here + if(event.charCode == 99 && event.ctrlKey) + return; + let keyCode = event.which || event.charCode || event.keyCode; if (keyCode == undefined || [9, 13].indexOf(keyCode) != -1 || this.isArrowEndHomeKeyInFirefox(event)) { @@ -206,4 +223,4 @@ export class InputHandler { event.target.setSelectionRange(rawValueWithoutSuffixEndPosition, rawValueWithoutSuffixEndPosition); }, 0); } -} \ No newline at end of file +}