Feature Request: Allow WebViews to Temporarily Disable Global Hotkeys During Text Input

Post Reply
schfiftyfive
Posts: 2
Joined: Sun Sep 21, 2025 1:49 am

Feature Request: Allow WebViews to Temporarily Disable Global Hotkeys During Text Input

Post by schfiftyfive »

Hello,

Hopefully Im posting this in the correct spot (let me know if there is a better location).

I’ve been building a few apps inside Hudiy and ran into a limitation with text inputs. When typing into search fields or other <input> boxes, certain keys are intercepted by Hudiy’s global shortcuts (for example:
  • h = Home
    g = Refresh
    Arrows / Backspace / Space also trigger global actions
This makes it seemingly impossible to type normally inside apps that need text entry. My attempts with stopPropagation() and stopImmediatePropagation() didn’t help, because Hudiy seemingly handles these shortcuts before the DOM receives them.

My Proposed solution:
  • Add a global flag (hotkeysEnabled) that gates the Hudiy hotkey dispatcher.
    Expose it to WebViews via an API, for example:

    Code: Select all

    hudiy.disableHotkeys(true); // suspend Hudiy global hotkeys
    hudiy.disableHotkeys(false); // re-enable them
    
    Apps could toggle this automatically on focus/blur of text inputs.
Or....Alternative (config-based):
  • Add an option in applications.json:

    Code: Select all

    { "id": "myCustomApp", "disableHotkeysWhenActive": true }
    
    This would suspend hotkeys whenever the app is in focus.
I feel this would...
  • Improve usability for any app requiring search or login fields.
    Preserve Hudiy shortcuts when focus leaves text input.
Would love to hear if this is feasible, or if there’s an existing workaround for apps that require text entry.

Thanks!
hudiy
Site Admin
Posts: 440
Joined: Mon Jul 14, 2025 7:42 pm

Re: Feature Request: Allow WebViews to Temporarily Disable Global Hotkeys During Text Input

Post by hudiy »

Hi,
That’s an interesting idea. We’ll look into the possibility of implementing a solution to temporarily enable/disable key handling from the HTML/JavaScript side.

Our planned, long-term solution is an on-screen keyboard built into Hudiy.

For now, you can completely disable keyboard event handling in Hudiy by using handleKeyboardEvents (https://github.com/wiboma/hudiy/blob/ma ... pplication). You can still send keyboard events to Hudiy through the API (https://github.com/wiboma/hudiy/blob/ma ... proto#L624).

With an external manager (e. g. written in Python), you could listen for keyboard events globally and translate them to KeyEvent messages. The manager could also provide an interface through which your applications can enable or disable sending of KeyEvent messages in specific cases (like app is in focus). It could work exactly as you described, except that it would be managed by the mentioned manager instead of Hudiy.
schfiftyfive
Posts: 2
Joined: Sun Sep 21, 2025 1:49 am

Re: Feature Request: Allow WebViews to Temporarily Disable Global Hotkeys During Text Input

Post by schfiftyfive »

Awesome, thank you for the reply and references. I will give it a try. A Hudiy keyboard (long term solution) will be most excellent.

I plan to share my apps with the forum once stable.

Having a great time with Hudiy, I appreciate what y'all are creating.
Post Reply