-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enter is not working in editor #5891
Comments
reproduced on my side, also |
I believe it's caused during #5865 |
@vince-fugnitto Could you try before 0953ba7 please to confirm? |
@vince-fugnitto you are right, looking at We should add return statements, i.e. protected handleEscape(event: KeyboardEvent): boolean | void {
const dialog = this.currentDialog;
if (dialog) {
return dialog['handleEscape'](event);
}
return false;
}
protected handleEnter(event: KeyboardEvent): boolean | void {
const dialog = this.currentDialog;
if (dialog) {
return dialog['handleEnter'](event);
}
return false;
} Could someone do a PR please? |
Also here: f48398e we should do |
Yes I tried earlier, both 0953ba7 and |
Fixes #5891 - fixes an issue where the `enter` key no longer works in the editor. - caused by a regression present in the `dialog.ts#handleEnter` method which was not returning `false` if a dialog was not present. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
Fixes #5891 - fixes an issue where the `enter` key no longer works in the editor. - caused by a regression present in the `dialog.ts#handleEnter` method which was not returning `false` if a dialog was not present. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
Fixes #5891 - fixes an issue where the `enter` key no longer works in the editor. - caused by a regression present in the `dialog.ts#handleEnter` method which was not returning `false` if a dialog was not present. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
Fixes #5891 - fixes an issue where the `enter` key no longer works in the editor. - caused by a regression present in the `dialog.ts#handleEnter` method which was not returning `false` if a dialog was not present. Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
Description
Enter is not working in editor
Reproduction Steps
Open some file and try to use Enter button.
OS and Theia version:
Ubuntu 18.04. Chrome.
0953ba7
The text was updated successfully, but these errors were encountered: