Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add keyboard listening event #153

Open
WarmSally opened this issue Apr 7, 2021 · 5 comments
Open

Unable to add keyboard listening event #153

WarmSally opened this issue Apr 7, 2021 · 5 comments
Labels
feature request Issues that request new features to be added to OnlyOffice

Comments

@WarmSally
Copy link

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

@WarmSally
Copy link
Author

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

@ShockwaveNN
Copy link
Contributor

@askonev Please take a look

@bxja
Copy link

bxja commented Apr 8, 2021

I also encountered the same problem, please help to solve it

@askonev
Copy link
Member

askonev commented Apr 8, 2021

@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.

@WarmSally
Copy link
Author

Thanks for your help

@ShockwaveNN ShockwaveNN added the feature request Issues that request new features to be added to OnlyOffice label Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to OnlyOffice
Projects
None yet
Development

No branches or pull requests

4 participants