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

SDK Ctrl key tracking

Explorer ,
Jan 19, 2022 Jan 19, 2022

Copy link to clipboard

Copied

Hey All!

 

Is it possible to track that ctr was pressed and released?

I want to differentiate the button behaviour rely on that.

 

I tried to use KEYDOWN Event, but it can be active just if any other meaningfull key (not only modifier key) was pressed with ctrl.

TOPICS
SDK , User interface or workspaces

Views

129

Likes

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
Explorer ,
May 31, 2022 May 31, 2022

Copy link to clipboard

Copied

Depending on the purpose, you can use the idle hook to track pressed keys. You just have to keep in mind that the detection is not immediate, and you'll have to wait for the timer tick to activate. Depending on what the system is doing, this can take a while, however it's usually about 100ms.

Likes

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
Explorer ,
Jun 08, 2022 Jun 08, 2022

Copy link to clipboard

Copied

Didnt know about idle hook, honestly...

Thank you! Diged out, learned a lot!

Likes

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
Explorer ,
Jul 22, 2022 Jul 22, 2022

Copy link to clipboard

Copied

LATEST

The hook is great! thanks!

However it is still a problem for me to track the pressed key. I found some solutions for windows, but not MacOS specific. Is there any way provided by Adobe? Didnt find in SDK help.

Or any other platform specific solutions?

Likes

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