Repository navigation
frame WebViewes eat keyboard input #104329
Copy link
Copy link
Closed
Labels
accessibilityKeyboard, mouse, ARIA, vision, screen readers (non-specific) issuesKeyboard, mouse, ARIA, vision, screen readers (non-specific) issuesbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code InsidersregressionSomething that used to work is now brokenSomething that used to work is now brokenverifiedVerification succeededVerification succeeded
Milestone
Description
Issue Type: Bug
- open Release Notes
- press alt to open the file menu
what's happening.
menu dosn't opens.
what should happen.
menu opens, focus moves
VS Code version: Code - Insiders 1.48.0-insider (2277c8e, 2020-08-07T11:32:09.993Z)
OS version: Windows_NT x64 10.0.19042
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 x 4200) |
| GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: enabled rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off_ok webgl: enabled webgl2: enabled |
| Load (avg) | undefined |
| Memory (System) | 15.86GB (7.90GB free) |
| Process Argv | |
| Screen Reader | yes |
| VM | 25% |
Extensions (22)
| Extension | Author (truncated) | Version |
|---|---|---|
| github-markdown-preview | bie | 0.0.2 |
| markdown-checkbox | bie | 0.1.3 |
| markdown-emoji | bie | 0.0.9 |
| markdown-preview-github-styles | bie | 0.1.6 |
| markdown-yaml-preamble | bie | 0.0.4 |
| vscode-astyle | chi | 0.9.0 |
| vscode-markdownlint | Dav | 0.36.2 |
| githistory | don | 0.6.9 |
| EditorConfig | Edi | 0.15.1 |
| vscode-pull-request-github | Git | 0.18.1 |
| vscode-language-pack-ru | MS- | 1.48.2 |
| python | ms- | 2020.7.96456 |
| remote-ssh | ms- | 0.51.0 |
| remote-ssh-edit | ms- | 0.51.0 |
| remote-wsl | ms- | 0.44.4 |
| cmake-tools | ms- | 1.4.1 |
| cpptools | ms- | 0.29.0 |
| vsliveshare | ms- | 1.0.2478 |
| vsliveshare-audio | ms- | 0.1.85 |
| vsliveshare-pack | ms- | 0.4.0 |
| code-spell-checker | str | 1.9.0 |
| code-spell-checker-russian | str | 0.2.4 |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
accessibilityKeyboard, mouse, ARIA, vision, screen readers (non-specific) issuesKeyboard, mouse, ARIA, vision, screen readers (non-specific) issuesbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersPatch has been released in VS Code InsidersregressionSomething that used to work is now brokenSomething that used to work is now brokenverifiedVerification succeededVerification succeeded
Activity
[-]frame WebViewes eat keybord input[/-][+]frame WebViewes eat keyboard input[/+]isidorn commentedon Aug 10, 2020
I can reproduce this - just open any markdown preview and
alt+fwill not open the file menu.I think we should fix this for this release, as it is a breaking change (in last stable I can nicely press
alt+fto open the file menu). Due to that I am assigning this to July and Matt Bierner (@mjbvz) can move it out if he would prefer to fix it next milestoneAlso fyi SteVen Batten (@sbatten) for custom menus
mjbvz commentedon Aug 10, 2020
SteVen Batten (@sbatten) Has the way the menus handle mnemonics changed this iteration? The webview still seem to be dispatching the events but they aren't being handled by anyone
sbatten commentedon Aug 10, 2020
Matt Bierner (@mjbvz) nope no changes that i know of
sbatten commentedon Aug 10, 2020
should be handled here
vscode/src/vs/base/browser/ui/menu/menubar.ts
Line 1020 in 4a1bcda
mjbvz commentedon Aug 10, 2020
alt+fis working for me and SteVen Batten (@sbatten) in insiders on windows.For just pressing
altto show the mnemonics, this does not seem like a regression from 1.47 in my testing but it was working in 1.469 remaining items
Fix alt for menus inside of webviews
Fix alt for menus inside of webviews (#116830)
DanTup commentedon Mar 8, 2021
Matt Bierner (@mjbvz) is there something webviews need to do to have keys passed back to VS Code? This came up at flutter/devtools#2775 and I can repro in both stable and insiders. The webview hosts an iframe if that matters. I'm unable to interact with VS Code (eg. to open command palette) when focus is in the web view.
I tried loading a non-Flutter page in there to check it wasn't specific to Flutter, but it's happening with other pages too.
mjbvz commentedon Mar 8, 2021
If you can avoid it, don't use an iframe.
If you absolutely must use an iframe, then you need to dispatch the keypresses back to webviews. See #65452 (comment)
DanTup commentedon Mar 9, 2021
Matt Bierner (@mjbvz) I don't think there's any way to avoid the iframe really. The linked solution didn't work due to CORS issues, but the comments further down using postMessage to bounce the events over does. I'll see whether we can get something like that in the embedded app. Thanks!