Skip to content

Commit 264d2d2

Browse files
committed
1 parent 46ae3f8 commit 264d2d2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/vs/editor/browser/controller/coreCommands.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import * as nls from 'vs/nls';
7+
import { isFirefox } from 'vs/base/browser/browser';
78
import { KeyCode, KeyMod } from 'vs/base/common/keyCodes';
89
import * as types from 'vs/base/common/types';
910
import { 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 {

0 commit comments

Comments
 (0)