• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

Contributor ,
Mar 27, 2018 Mar 27, 2018

Copy link to clipboard

Copied

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.

InkedClipboard02_LI.jpg

Thank you,

Naoki

TOPICS
Actions and scripting

Views

638

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Enthusiast ,
Mar 28, 2018 Mar 28, 2018

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 28, 2018 Mar 28, 2018

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines