File tree Expand file tree Collapse file tree
src/vs/editor/browser/controller Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 *--------------------------------------------------------------------------------------------*/
55
66import * as nls from 'vs/nls' ;
7+ import { isFirefox } from 'vs/base/browser/browser' ;
78import { KeyCode , KeyMod } from 'vs/base/common/keyCodes' ;
89import * as types from 'vs/base/common/types' ;
910import { ICodeEditor } from 'vs/editor/browser/editorBrowser' ;
@@ -1640,6 +1641,11 @@ export namespace CoreNavigationCommands {
16401641 super ( SelectAllCommand ) ;
16411642 }
16421643 public runDOMCommand ( ) : void {
1644+ if ( isFirefox ) {
1645+ ( < HTMLInputElement > document . activeElement ) . focus ( ) ;
1646+ ( < HTMLInputElement > document . activeElement ) . select ( ) ;
1647+ }
1648+
16431649 document . execCommand ( 'selectAll' ) ;
16441650 }
16451651 public runEditorCommand ( accessor : ServicesAccessor , editor : ICodeEditor , args : any ) : void {
You can’t perform that action at this time.
0 commit comments