From ac620e015b9d67fe06abe83a79b7b017c82482a1 Mon Sep 17 00:00:00 2001 From: Paul Rouget Date: Mon, 25 Nov 2013 09:32:04 -0500 Subject: [PATCH] Bug 917777 - Don't override ctrl-a behavior. r=msucan --- browser/devtools/webconsole/webconsole.js | 24 ----------------------- 1 file changed, 24 deletions(-) diff --git a/browser/devtools/webconsole/webconsole.js b/browser/devtools/webconsole/webconsole.js index 83527a9c64e..38606ddabbf 100644 --- a/browser/devtools/webconsole/webconsole.js +++ b/browser/devtools/webconsole/webconsole.js @@ -3980,30 +3980,6 @@ JSTerm.prototype = { if (aEvent.ctrlKey) { switch (aEvent.charCode) { - case 97: - // control-a - this.clearCompletion(); - - if (Services.appinfo.OS == "WINNT") { - // Allow Select All on Windows. - break; - } - - let lineBeginPos = 0; - if (this.hasMultilineInput()) { - // find index of closest newline <= to cursor - for (let i = inputNode.selectionStart-1; i >= 0; i--) { - if (inputNode.value.charAt(i) == "\r" || - inputNode.value.charAt(i) == "\n") { - lineBeginPos = i+1; - break; - } - } - } - inputNode.setSelectionRange(lineBeginPos, lineBeginPos); - aEvent.preventDefault(); - break; - case 101: // control-e if (Services.appinfo.OS == "WINNT") {