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

ctrl + shift + f does not work while in editor #201637

Closed
bilogic opened this issue Dec 31, 2023 · 22 comments
Closed

ctrl + shift + f does not work while in editor #201637

bilogic opened this issue Dec 31, 2023 · 22 comments
Assignees

Comments

@bilogic
Copy link

bilogic commented Dec 31, 2023

Does this issue occur when all extensions are disabled?: Yes, see vscode.dev

  • VS Code Version:
  • OS Version:
    Version: 1.85.1
    Commit: 0ee08df
    Date: 2023-12-13T09:49:35.427Z
    Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36

Steps to Reproduce:

  1. See video
  2. ctrl + shift + e works in editor
  3. ctrl + shift + f does not work in editor
  4. But pressing ctrl + shift + f works if in explorer
vid.mp4
@ulugbekna
Copy link
Contributor

ulugbekna commented Jan 2, 2024

I can't repro, but I see from your screencast that ctrl+shift+f isn't reaching the keybinding service of vscode while in editor, so I suspect chrome or some plugin you have has the same shortcut and processes it before the event reaches vscode.

Could you try invoking ctrl+shift+e on this website and see if all events are caught? A screencast would be great

@ulugbekna ulugbekna self-assigned this Jan 2, 2024
@ulugbekna ulugbekna added the info-needed Issue requires more information from poster label Jan 2, 2024
@bilogic
Copy link
Author

bilogic commented Jan 2, 2024

Thanks for getting back. I tried again and it works as it should now.

I did check through the keyboard shortcuts of my Chrome extensions before opening this issue, but since it works now, let's consider this closed. I will update again with better info if it comes back.

@bilogic bilogic closed this as completed Jan 2, 2024
@bilogic
Copy link
Author

bilogic commented Jan 3, 2024

The problem is back and here are more thoughts:

Since ctrl+shift+f reached in VSCode explorer, why would Chrome and its extensions be suspect?

Here is the screencast you requested, ctrl+shift+e and ctrl+shift+f looks a bit different to me though

vid.mp4

@bilogic bilogic reopened this Jan 3, 2024
@bilogic
Copy link
Author

bilogic commented Jan 3, 2024

It seems that when the issue occurs, ctrl+shift+f keydown does not reach the webpage

@renxida
Copy link

renxida commented Jan 4, 2024

I'm having similar issues, except I'm running VS Code desktop client on windows.

With the editor focused, I get the following log. It looks like the "f" key isn't reaching KeyBindingService.

2024-01-04 10:10:21.106 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-01-04 10:10:21.106 [info] [KeybindingService]: \ Keyboard event cannot be dispatched
2024-01-04 10:10:21.107 [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 17, key: Control
2024-01-04 10:10:21.107 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 5 ('Ctrl')
2024-01-04 10:10:21.107 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2024-01-04 10:10:21.109 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-01-04 10:10:21.109 [info] [KeybindingService]: \ Keyboard event cannot be dispatched
2024-01-04 10:10:21.109 [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl,shift], code: ShiftLeft, keyCode: 16, key: Shift
2024-01-04 10:10:21.109 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl,shift], code: ShiftLeft, keyCode: 4 ('Shift')
2024-01-04 10:10:21.109 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2024-01-04 10:10:21.574 [info] [KeybindingService]: + Ignoring single modifier ctrl due to it being pressed together with other keys.

When I focus anywhere other than the editor, I get this

2024-01-04 10:11:06.718 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-01-04 10:11:06.718 [info] [KeybindingService]: \ Keyboard event cannot be dispatched
2024-01-04 10:11:06.718 [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 17, key: Control
2024-01-04 10:11:06.718 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 5 ('Ctrl')
2024-01-04 10:11:06.719 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2024-01-04 10:11:06.774 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-01-04 10:11:06.774 [info] [KeybindingService]: \ Keyboard event cannot be dispatched
2024-01-04 10:11:06.775 [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl,shift], code: ShiftLeft, keyCode: 16, key: Shift
2024-01-04 10:11:06.775 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl,shift], code: ShiftLeft, keyCode: 4 ('Shift')
2024-01-04 10:11:06.775 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2024-01-04 10:11:06.902 [info] [KeybindingService]: / Soft dispatching keyboard event
2024-01-04 10:11:06.903 [info] [KeybindingService]: | Resolving ctrl+shift+F
2024-01-04 10:11:06.903 [info] [KeybindingService]: \ From 3 keybinding entries, matched workbench.action.findInFiles, when: no when condition, source: built-in.
2024-01-04 10:11:06.903 [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl,shift], code: KeyF, keyCode: 70, key: F
2024-01-04 10:11:06.903 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl,shift], code: KeyF, keyCode: 36 ('F')
2024-01-04 10:11:06.903 [info] [KeybindingService]: | Resolving ctrl+shift+F
2024-01-04 10:11:06.904 [info] [KeybindingService]: \ From 3 keybinding entries, matched workbench.action.findInFiles, when: no when condition, source: built-in.
2024-01-04 10:11:06.904 [info] [KeybindingService]: + Invoking command workbench.action.findInFiles.
2024-01-04 10:11:07.190 [info] [KeybindingService]: + Ignoring single modifier ctrl due to it being pressed together with other keys.

and ctrl+shift+f is successfully triggered.

@bilogic
Copy link
Author

bilogic commented Jan 5, 2024

I like to emphasize, this issue is very intermittent. Hope we lean on trying to reproduce it rather than classify it as isolated cases.

@bilogic
Copy link
Author

bilogic commented Jan 8, 2024

More and more keys are randomly not working, e.g. home, end when typing a commit message, to fix, I had to close the vscode window and open it again. However Chrome did not restart, implying that Chrome extensions were not restarted

@bilogic
Copy link
Author

bilogic commented Jan 24, 2024

Each time I face this, I have to press ctrl+shift+e to jump into explorer first, then press ctrl+shift+f works. I can't quite comprehend how this can be caused by Chrome.

@renxida
Copy link

renxida commented Jan 26, 2024

(ctrl+shift+f is currently working for me again)
Thanks @bilogic for the ctrl+shift+e idea. Great temporary fix for next time it stops working.

@bilogic
Copy link
Author

bilogic commented Jan 26, 2024

@ulugbekna

What other info do you need?

@vscodenpa
Copy link

Hey @ulugbekna, this issue might need further attention.

@bilogic, you can help us out by closing this issue if the problem no longer exists, or adding more information.

@ulugbekna
Copy link
Contributor

@bilogic Sorry for a late reply; the issue got lost in inbox. Can you reproduce this in incognito mode? Does it happen only occasionally or always?

@renxida

With the editor focused, I get the following log. It looks like the "f" key isn't reaching KeyBindingService.

Well, it has to be something capturing that keybinding and not passing to vscode. It's unlikely the editor because others don't have that problem. Try seeing if you have any program that could capture that keybinding conditionally.

@bilogic
Copy link
Author

bilogic commented Apr 18, 2024

@ulugbekna thanks, I have not encountered it for a while now, but will need some time to verify it.

Meanwhile, is this a PR something you can help approve? #207721

Thanks!

@renxida
Copy link

renxida commented Apr 18, 2024

same. Haven't been an issue for me for a while now.

@ulugbekna ulugbekna removed the info-needed Issue requires more information from poster label Apr 22, 2024
@ulugbekna
Copy link
Contributor

Thanks! Closing for now since it seems fixed

@bilogic
Copy link
Author

bilogic commented May 1, 2024

@ulugbekna thanks, would you be able to help with #207721?

@ulugbekna
Copy link
Contributor

I'll try

@bilogic
Copy link
Author

bilogic commented May 2, 2024

thanks!

@bilogic
Copy link
Author

bilogic commented May 7, 2024

@ulugbekna possible? haha thank you

@ulugbekna
Copy link
Contributor

ulugbekna commented May 8, 2024

The corresponding issue was closed without getting support, so the PR will not likely be merged.

cc @benibenj

@bilogic
Copy link
Author

bilogic commented May 8, 2024

Do you mean not reaching 20 votes? Does every issue have to be voted on this way to be merged?

@ulugbekna
Copy link
Contributor

ulugbekna commented May 8, 2024

Do you mean not reaching 20 votes?

Yes

Does every issue have to be voted on this way to be merged?

It depends on the area owner -- for this issue, it's Ben cc'ed above.

@microsoft microsoft locked and limited conversation to collaborators Jun 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants