mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-06-08 13:16:33 +00:00
Fixed focus.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
8ccea24452
commit
cfdb00529c
@ -6,7 +6,7 @@ import { isOSX } from '@theia/core/lib/common/os';
|
|||||||
import { Event, Emitter } from '@theia/core/lib/common/event';
|
import { Event, Emitter } from '@theia/core/lib/common/event';
|
||||||
import { Key, KeyCode } from '@theia/core/lib/browser/keys';
|
import { Key, KeyCode } from '@theia/core/lib/browser/keys';
|
||||||
import { DisposableCollection } from '@theia/core/lib/common/disposable'
|
import { DisposableCollection } from '@theia/core/lib/common/disposable'
|
||||||
import { ReactWidget, Message, Widget } from '@theia/core/lib/browser/widgets';
|
import { ReactWidget, Message, Widget, MessageLoop } from '@theia/core/lib/browser/widgets';
|
||||||
import { Board, Port } from '../../common/protocol/boards-service';
|
import { Board, Port } from '../../common/protocol/boards-service';
|
||||||
import { MonitorConfig } from '../../common/protocol/monitor-service';
|
import { MonitorConfig } from '../../common/protocol/monitor-service';
|
||||||
import { ArduinoSelect } from '../components/arduino-select';
|
import { ArduinoSelect } from '../components/arduino-select';
|
||||||
@ -101,6 +101,7 @@ export class MonitorWidget extends ReactWidget {
|
|||||||
|
|
||||||
protected onFocusResolved = (element: HTMLElement | undefined) => {
|
protected onFocusResolved = (element: HTMLElement | undefined) => {
|
||||||
this.focusNode = element;
|
this.focusNode = element;
|
||||||
|
requestAnimationFrame(() => MessageLoop.sendMessage(this, Widget.Msg.ActivateRequest));
|
||||||
}
|
}
|
||||||
|
|
||||||
protected get lineEndings(): OptionsType<SelectOption<MonitorModel.EOL>> {
|
protected get lineEndings(): OptionsType<SelectOption<MonitorModel.EOL>> {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user