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

Hotkeys often detach when window focus changes #5393

Open
Greedquest opened this issue Feb 21, 2020 · 2 comments
Open

Hotkeys often detach when window focus changes #5393

Greedquest opened this issue Feb 21, 2020 · 2 comments
Labels
bug Identifies work items for known bugs

Comments

@Greedquest
Copy link
Contributor

Rubberduck version information

Version 2.5.0.5325
OS: Microsoft Windows NT 10.0.18362.0, x64
Host Product: Microsoft Office x86
Host Version: 16.0.11929.20562
Host Executable: EXCEL.EXE

Description
Rubberducks hotkeys often become detached/stop working over the course of a session. I've noticed it most with Ctrl+Shift+E or Ctrl+' as I use them often, but I imagine this is true of many of RD's custom shortcuts. I'm not sure exactly what causes it, I think it's something to do with changing focus from a RD window to a VBE one, but I've managed to reproduce quite consistently on my machine

To Reproduce

  1. Open a new instance of Excel and start a new project
  2. Do a clean reparse
  3. Bring up the classic project explorer (Ctrl + R) or click into the immediate window
    • This may require a few clicks/ some waiting
  4. RD's shortcuts no longer work while a VBE window is focussed

Workaround
A workaround to deal with this:

  • Ensure code pane is active
  • Use Ctrl+E to bring up a VBE Export window, then Esc key out of it
  • The RD shortcuts now work

Or just click on RD's Code Explorer window

@Greedquest Greedquest added the bug Identifies work items for known bugs label Feb 21, 2020
@Greedquest
Copy link
Contributor Author

PS, possibly related:

The hotkeys are supposed to disengage whenever the VBE is no longer the active window*

but this feels like an inversion; hotkeys are disabled when switching away from RD to the VBE

@bclothier
Copy link
Contributor

Duplicates: #5081 , #4198, and #3996

They all cover a bit different aspects but we should consolidate those 4 issues together since I believe they fundamentally have the same root cause: hotkeys aren't consistently working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Identifies work items for known bugs
Projects
None yet
Development

No branches or pull requests

2 participants