cancel
Showing results for 
Search instead for 
Did you mean: 

create hotkey for button save

satthu565
Champ in-the-making
Champ in-the-making
hi there!
i want to create hotkey for my submit button but i don't know how to do that!
Ex: Press Ctrl + s -> submit
please help me!
thank so much.
2 REPLIES 2

muralidharand
Star Contributor
Star Contributor
Hi,
Alfresco Share is already providing Escape Key listener in object-finder control. 
I think, you can follow the similar approach for the Form Submit.

Snippet of Object-finder.js.,

C:\Alfresco\tomcat\webapps\share\components\object-finder\object-finder-min.js


// Register the ESC key to close the dialog
         if (!this.widgets.escapeListener)
         {
            this.widgets.escapeListener = new KeyListener(this.pickerId,
            {
               keys: KeyListener.KEY.ESCAPE
            },
            {
               fn: function ObjectFinder_onAddButtonClick_fn(eventName, keyEvent)
               {
                  this.onCancel();
                  Event.stopEvent(keyEvent[1]);
               },
               scope: this,
               correctScope: true
            });
         }
         this.widgets.escapeListener.enable();


Thanks,
Murali

This is good idea.
Thank you so much!
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.