create hotkey for button save
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-16-2015 07:30 AM
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.
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.
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2015 04:14 AM
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
Thanks,
Murali
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2015 05:45 AM
This is good idea.
Thank you so much!
Thank you so much!
