Skip to content
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

Prevent default handling for the browser reserved hotkeys inside webviews #7216

Merged
merged 1 commit into from
Feb 26, 2020

Conversation

vzhukovs
Copy link
Contributor

@vzhukovs vzhukovs commented Feb 25, 2020

What it does

This changes proposal prevents calling default browser hotkeys, such as CtrlCmd+P, CtrlCmd+O inside Web Views, when the last one is under focus.

Related issue: eclipse-che/che#15763

State in master:
wrong_handling

State with current changes:
handling

Signed-off-by: Vladyslav Zhukovskyi vzhukovs@redhat.com

How to test

Use sample extension https://github.com/microsoft/vscode-extension-samples/tree/master/webview-sample and try to call default browser hotkey.

Review checklist

Reminder for reviewers

…iews

Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@vzhukovs vzhukovs added enhancement issues that are enhancements to current functionality - nice to haves Team: Che-Editors issues regarding the che-editors team webviews issues related to webviews labels Feb 25, 2020
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I verified the pull-request using the coding-cat example. I was able to trigger the command palette and search using keybindings (something that was not possible when on master).

Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I verified the pull-request using the coding-cat example. I was able to trigger the command palette and search using keybindings (something that was not possible when on master).

Copy link
Member

@azatsarynnyy azatsarynnyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! 👍
Works nicely now. I've tested in Chrome and FireFox.

@vzhukovs vzhukovs self-assigned this Feb 25, 2020
@vzhukovs vzhukovs merged commit 02d6964 into master Feb 26, 2020
@vzhukovs vzhukovs deleted the che#15763 branch February 26, 2020 08:51
vince-fugnitto added a commit that referenced this pull request Feb 27, 2020
Fixes #7232

This commit reverts the breaking change of #7216 which
meant that users would not be able to provide keyboard input any
longer in a webview.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
@vince-fugnitto vince-fugnitto mentioned this pull request Feb 27, 2020
1 task
vince-fugnitto added a commit that referenced this pull request Feb 27, 2020
Fixes #7232

This commit reverts the breaking change of #7216 which
meant that users would not be able to provide keyboard input any
longer in a webview.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
JesterOrNot pushed a commit to JesterOrNot/theia that referenced this pull request Mar 12, 2020
Fixes eclipse-theia#7232

This commit reverts the breaking change of eclipse-theia#7216 which
meant that users would not be able to provide keyboard input any
longer in a webview.

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement issues that are enhancements to current functionality - nice to haves Team: Che-Editors issues regarding the che-editors team webviews issues related to webviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants