Book a Demo

Author Topic: Assign keyboard shorcuts on add-in menus  (Read 7394 times)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Assign keyboard shorcuts on add-in menus
« on: March 02, 2018, 11:48:48 pm »
Hi,

Is it possible to let a user assign keyboard shortcuts (e.g. F1, Maj+F1...) with an installed add-in menu/feature?

Thanks
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Assign keyboard shorcuts on add-in menus
« Reply #1 on: March 03, 2018, 01:34:22 am »
Standard this is not possible, but while ago (few years) someone (I don't remember who) posted a workaround for this.

Geert

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Assign keyboard shorcuts on add-in menus
« Reply #2 on: March 03, 2018, 01:41:13 am »
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Assign keyboard shorcuts on add-in menus
« Reply #3 on: March 06, 2018, 01:10:43 am »
Hi,

hot keys according to the mentioned article are implemented in hoTools (https://github.com/Helmut-Ortmann/EnterpriseArchitect_hoTools).

Per dialog you can assign a service or a search to a hot key (e.g. 'F1+Shift+Ctrl'). You find the description in https://github.com/Helmut-Ortmann/EnterpriseArchitect_hoTools/wiki/GlobalKeys.

hoTool is Open Software.

Best regards,

Helmut

Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Assign keyboard shorcuts on add-in menus
« Reply #4 on: March 08, 2018, 04:20:18 pm »
Hi Helmut,

I looked at the hoTools code and found you managed to integrate the suggested feature from the Sparx Community article.
Since then, have you noticed or been reported any issue or bug linked to global keys?

I also found a package available here for C# projects: https://github.com/kirmir/GlobalHotKey

My concern with having each add-in implementing its own global keys management is the difficulty in preventing conflicts over assigned keys and potentially crash EA. Hence I think that EA should handle global keys assignments for add-in extensions, e.g. where each add-in dev team would provide the name of the menu to run accordingly, and enter on a config popup by the user.
Any thoughts from Sparx?
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Assign keyboard shorcuts on add-in menus
« Reply #5 on: March 08, 2018, 04:56:10 pm »
It would certainly be better if Sparx provided an add-in key-shortcut facility.

Geert

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Assign keyboard shorcuts on add-in menus
« Reply #6 on: March 10, 2018, 01:56:55 am »
Hi Guillaume,

you are right! An EA API would be better.

So far I'm not aware of any issues.

Sometimes it's convenient to have a search or a service on a key combination.

Best regards,

Helmut

Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Guillaume

  • EA Practitioner
  • ***
  • Posts: 1405
  • Karma: +42/-2
    • View Profile
    • www.umlchannel.com
Re: Assign keyboard shorcuts on add-in menus
« Reply #7 on: March 13, 2018, 07:30:41 pm »
Feature request sent to Sparx.
Guillaume

Blog: www.umlchannel.com | Free utilities addin: www.eautils.com