Keyboard focus stolen by Rhino when in Grasshopper Inside Revit

I’m experiencing some very frustrating issues trying to use the keyboard inside Grasshopper using RhinoInsideRevit, where the keyboard focus keeps being stolen by Rhino even though Rhino isn’t on screen. I’m afraid I don’t have a great set of steps to reproduce but the behaviour looks like this:

  • Start Revit (2019)
  • Start RhinoInsideRevit
  • Open a Grasshopper window (without opening a Rhino window)
  • After a few minutes trying to use keyboard shortcuts or type in a Panel in Grasshopper results in the keyboard input going to the invisible Rhino window - you can see the autocomplete dropdown from the Rhino command line appearing over the top.
  • If I actually open the Rhino window and put on another monitor it’s even clearer - I can see the input going into the command line.
  • In the Rhino command line I can see the error “[HotKeyHandler] | WARN | Could not claim hotkeys. Another CAD process is unresponsive.” being spammed continuously by something.

If I try using the Windows On Screen Keyboard I get the same behaviour.

This is with the versions below - this is a WIP version of RhinoInsideRevit but I was experiencing the same issue with 1.12 stable as well.

Rhino.Inside Revit: 1.15.8571.17168 (2023-06-20T09:32:16)
Rhino: 7.30.23163.13001 (Rhino 7)
Revit: 2019.2 (20220111_1110(x64))
CLR: 4.0.30319.42000 (4.8.4644.0)
OS: Microsoft Windows NT 10.0.19044.0

Any ideas?

I’ve taken a short screen recording of this happening with the Rhino window visible.

There is a long outstanding GH/Rhino issue that is similar, your issue happening more consistently points towards an environment or plugin variable.

What is your typical setup in relation to monitors? Do you work on multiple or keep everything on one? Are they scaled the same?

Please type systemInfo into the Rhino command line and post the results.

GH plugins can be kept from loading here, disable all third party and see if the issue persists.

Usually using a laptop screen, two external displays through a USB-C dock and another display on USB-C (so four total) - although usually I would spread Revit/Rhino/Grasshopper out this happens if everything is on the same monitor.

The issue still occurs if I load without external plugins.

Output of Rhino systeminfo:

We’ll need to remove as many variables as possible for troubleshooting.

Then remove all external monitors & usb DisplayLinks.