winder / Universal-G-Code-Sender

A cross-platform G-Code sender for GRBL, Smoothieware, TinyG and G2core.
http://winder.github.io/ugs_website/
GNU General Public License v3.0
1.85k stars 758 forks source link

Automatically focus macro placeholder input #2473

Closed warmans closed 4 months ago

warmans commented 4 months ago

Description

I use one of those wireless numpads to control UGS e.g.

image

This works great with macros as it's easy to just bind them to a function key, and use the arrows for jogging etc. Typically I use macros with numeric {{placeholders}} (e.g. the tool diameter). So what I would like to do is:

  1. press the macro key (e.g. X probe)
  2. enter the value with the numpad
  3. hit enter

However there is one small problem: the input box of the macro pop-up is not focussed when it opens. So you still need to grab the mouse and click in the input box.

My request is that when a macro placeholder popup opens, it will automatically focus on the input. 🙏