简体   繁体   中英

Keyboard shortcuts in Google Slides Add-on

I'm creating an add-on for Google Slides. My add-on consists of a single button in HTML. Instead of having the user click on the button (which performs an action to the slide), is it possible to create a keyboard shortcut that automatically clicks the button or "calls" the script function?

Not really.

The add-on is in a separate iframe and doesn't have visibility to any keyboard events in the main window. It could capture events in the add-on window, but it only works if the focus is already on the add-on. The overhead of setting the focus properly makes the keyboard shortcut not so useful.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM