-
Notifications
You must be signed in to change notification settings - Fork 94
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
Keyboard shortcut support #24
Comments
Thanks for the detailed notes. Though I'm not sure how much of key stroke events can be propagated to a web add-in. Will get back... |
This is pretty low in the roadmap at this time. No ETA yet. |
That's a bummer that this is low priority. Excel for Mac for example is a pretty poor implementation compared to Windows and it would be great if developers could bridge the gap with the Javascript API. What do you mean you're not sure how much of key stroke events can be propagated to a web add-in? You're already propagating events from a native application to a web add-in everywhere else. |
this is a feature request, please use https://officespdev.uservoice.com/ |
Unfortunately under review since 2016 already. This feature would be a big step in closing the functionality gap between VBA and Office JS. |
Expected Behavior
Support for key combo press (keyboard shortcut) event trigger.
Current Behavior
Currently, we can only trigger add-in reaction by
Context
Many user scenarios call for continuous and seamless environment change.
An existing example is the equation editor. In desktop client of Word, PowerPoint and OneNote, we can create new equation field by pressing Alt + =.
Case: code pieces in document
Take code formatting as an example. The solutions we have now are very limited. They all have unsatisfactory experiences.
Analysis: Pasting from other text editor
We can copy HTML-formatted code from VS Code or other code editors into Word. However, it involves launching instances of other applications.
Analysis: Existing Add-in
code format
Or, we can use the existing
code format
add-in. If a user wants to write directly in Word document, he is then required to edit the code in regular text environment first, where auto-indentation and auto-capitalization experience can be horribly disturbing. It also requires the user to do selection after they get the code ready.Ideal flow
Wrapping up
From discussion with staffs here at O365 DevDays 2017 in Shanghai, there are no current public API available for such experiences. They suggest that an issue should be posted here to stress such needs. The proposed ideal flow case also requires other potential API creations. However, the general idea here is to further modularize document elements and integrate them more seamlessly, in a way that is similar to the Python Jupyter Notebook experience or Mathematica Notebook experience.
The text was updated successfully, but these errors were encountered: