Skip to main content
Naoki-Hada
Known Participant
March 27, 2018
Question

[Q] Can we detect if cursor is in numeric input field or not?

  • March 27, 2018
  • 1 reply
  • 807 views

Hi all,

Photoshop UI has keyboard shortcut arrow up/down to change numeric input field.

I compared dumps from xtools' GetterDemo, but it seems no difference.

To control this part externally, I'd like to know if cursor is in any numeric input field or not.

Q1: Can we detect in CEP plugin framework (JS and JSX).

Q2) Can we detect in any way? (including Photoshop plugin SDK)

When the cursor is in numeric input field, arrow up/down will increment/decrement value.

Thank you,

Naoki

This topic has been closed for replies.

1 reply

Jarda Bereza
Inspiring
March 28, 2018

In your HTML CEP panels you can get active input.

In Photoshop native panels not. Maybe if you would use AutoHotkey it could help but it is not reliable.

Anyway If want change single property in Brush Settings you can do it (read and write) and you don't need to open panel.

Naoki-Hada
Known Participant
March 28, 2018

Hi Jarda,

Thank you very much for info.

For this particular case, I want to detect on Photoshop native panel as general implementation.

Thank you,

Naoki