• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. Bind Double Press Escape to geDeselectAllFig not effect

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 125
  • Views 1815
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Bind Double Press Escape to geDeselectAllFig not effect

SimbaG
SimbaG 6 months ago

Hi, I am trying to bind if I double press escape in Virtuoso Layout Editor XL, deselect everything (Default is Ctrl+D)

So I wrote the following code and execute in CIW

hiSetBindKey("Layout" "<Key>Escape(2)" "geDeselectAllFig()")

No effect, is it due to Esc is a special Key hardcoded?

From  bindkey for check->find marker , I have turned on the Log Filter. I found if no command is being executed, even the default key binding to Escape ( cacelEnterFun() ) will not be executed while Esc is pressed.

My double click setting is 200ms (default), and I can trigger Mouse double click.

Thanks.

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett 6 months ago

    The occurrences (2) part is only valid for mouse clicks, not key presses. This is stated in the documentation in the section "Format for Key and Mouse Bindings".

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • SimbaG
    SimbaG 6 months ago in reply to Andrew Beckett

    I missed that. So is it possible to bind double press key?

    Maybe write custom SKILL function. Is there a function that get system time so that I can track 'double press' from single press callbacks.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • SimbaG
    SimbaG 6 months ago in reply to Andrew Beckett

    I missed that. So is it possible to bind double press key?

    Maybe write custom SKILL function. Is there a function that get system time so that I can track 'double press' from single press callbacks.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • Andrew Beckett
    Andrew Beckett 6 months ago in reply to SimbaG
    SimbaG said:
    So is it possible to bind double press key?

    No.

    SimbaG said:
    Is there a function that get system time so that I can track 'double press' from single press callbacks.

    There's no built-in function to do this with sufficient resolution - getCurrentTime() returns the time to 1 second resolution. Using an external executable to capture this would probably be expensive to launch and capture the result, although maybe OK if you are only doing it on the key press. Given that nothing else uses this double press bindkey, I'd question the use model - it would probably not be expected by users.

    Especially not with the use of the escape key - users tend to hammer away at the escape key to get out of any nested enter functions they might be in, so suddenly finding that it deselects everything would be a bit strange.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information