sdkjs-plugins
sdkjs-plugins copied to clipboard
Unable to add keyboard listening event
Excuse me, I want to add the monitoring of keyboard function keys to formulate some special behaviors, but I can't find the corresponding API on the official website.I want to ask if the existing API supports listening for keyboard events
For example, I want to listen for the Enter key,I tried two ways the first,I use the API provided by the official website to monitor character input,
window.Asc.plugin.event_onInputHelperInput = function(data){
}
the second,I use the ‘document.addEventListener’ to monitor keyboard pressed events; But neither method worked
@askonev Please take a look
I also encountered the same problem, please help to solve it
@WarmSally @bxja
Unfortunately, this functionality does not exist at the moment, but I started an enhancement bug №49548
to add these methods. Thank you for your idea and for improving the ONLYOFFICE project.
Thanks for your help