Skip to content

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

Closed

Description

@bilogic

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

Activity

  1. ulugbekna commented on Jan 2, 2024

    @ulugbekna
    Contributor

    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

  2. bilogic commented on Jan 2, 2024

    @bilogic
    ContributorAuthor

    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.

  3. bilogic commented on Jan 3, 2024

    @bilogic
    ContributorAuthor

    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
  4. reopened this on Jan 3, 2024
  5. bilogic commented on Jan 3, 2024

    @bilogic
    ContributorAuthor

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

  6. renxida commented on Jan 4, 2024

    @renxida

    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.

  7. bilogic commented on Jan 5, 2024

    @bilogic
    ContributorAuthor

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

  8. bilogic commented on Jan 8, 2024

    @bilogic
    ContributorAuthor

    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

  9. bilogic commented on Jan 24, 2024

    @bilogic
    ContributorAuthor

    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.

  10. renxida commented on Jan 26, 2024

    @renxida

    (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.

  11. bilogic commented on Jan 26, 2024

    @bilogic
    ContributorAuthor

    Ulugbek Abdullaev (@ulugbekna)

    What other info do you need?

  12. vscodenpa commented on Apr 18, 2024

    @vscodenpa

    Hey Ulugbek Abdullaev (@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.

  13. ulugbekna commented on Apr 18, 2024

    @ulugbekna
    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?

    Xida Ren (@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.

  14. bilogic commented on Apr 18, 2024

    @bilogic
    ContributorAuthor

    Ulugbek Abdullaev (@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!

  15. renxida commented on Apr 18, 2024

    @renxida

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

  16. ulugbekna commented on Apr 22, 2024

    @ulugbekna
    Contributor

    Thanks! Closing for now since it seems fixed

  17. bilogic commented on May 1, 2024

    @bilogic
    ContributorAuthor

    Ulugbek Abdullaev (@ulugbekna) thanks, would you be able to help with #207721?

  18. ulugbekna commented on May 2, 2024

    @ulugbekna
    Contributor

    I'll try

  19. bilogic commented on May 2, 2024

    @bilogic
    ContributorAuthor

    thanks!

  20. bilogic commented on May 7, 2024

    @bilogic
    ContributorAuthor

    Ulugbek Abdullaev (@ulugbekna) possible? haha thank you

  21. ulugbekna commented on May 8, 2024

    @ulugbekna
    Contributor

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

    cc Benjamin Christopher Simmonds (@benibenj)

  22. bilogic commented on May 8, 2024

    @bilogic
    ContributorAuthor

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

  23. ulugbekna commented on May 8, 2024

    @ulugbekna
    Contributor

    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.

  24. locked and limited conversation to collaborators on Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions