Global shortcut openning common form whatever user is doing



  • Alex Ogourok
    Kris, hello!

    I know one way you can do it. There is global short key command Ctrl + Shift + F for opening a default search form. You can set up your own form for this shortcut in the configuration property. After this the command Ctrl + Shift + F will call your form.

    Kind regards,
    Comment actions Permalink
  • Kris Lipiński
    Yes, but I need my own shortcut (F3 key) and besides Ctrl+Shift+F doesn't work always. It should work no matter I do.
    Comment actions Permalink
  • Vladimir Gurov
    Dear Kris,

    There is no universal solution for this task.

    Option 1. Create a common command with a keyboard shortcut and bind the command to an actions panel group.

    Alternatively, if you do not want to display the command in the user interface, you can place the command to a common command group, bind the group to the actions panel, and then, in the main section command interface, hide the command.

    Anyway, such a shortcut does not work elsewhere in your application.

    In the command, it is recommended to use keyboard shortcuts that differ from those that 1C:Enterprise platform uses by default. For instance, F3 is used to find the next occurrence of the sought-for element.

    Option 2. Use an external component (like AddHook.dll) to catch all keyboard pressing events and process them in accordance with how you want to respond to a particular keyboard shortcut.

    This option works in the thin and thick client and does not work in the web client.

    Best regards,
    Vladimir Gurov
    Comment actions Permalink

Please sign in to leave a comment.