How can I install additional keyboard shortcuts

Posted by: kirill_071 on 7 March 2023, 6:42 am EST

    • Post Options:
    • Link

    Posted 7 March 2023, 6:42 am EST

    Hi! I need to implement basic keyboard shortcuts, like ctrl + b - bold text

    In your documentation I found the Keyboard Navigation Shortcuts section, which had a link to Additional Keyboard Shortcuts

    https://github.com/GrapeCity/spreadjs-resources

    but I don’t understand what exactly I need to do to pull these additional keyboard shortcuts into my project, the link to which script I need to register or what I need to download

    Help me figure it out, please

  • Posted 9 March 2023, 6:15 am EST

    Hello Kirill,

    It seems that you’re interested in integrating additional keyboard shortcut keys into your project. To achieve this, you’ll need to acquire the “SpreadJS.Shortcuts.Extension.15.0.3.zip” file located in the “Keyboard Shortcuts” folder from the following GitHub repository: https://github.com/GrapeCity/spreadjs-resources.

    The aforementioned zip file contains an assortment of command categories that correspond to different shortcut keys. For instance, if you’re interested in Style-related commands, you can navigate to the “src/shortcut/action.style.ts” file within the downloaded folder. Based on your requirements, you can include the relevant files into your project.

    To supplement this information, we’ve attached a sample that showcases the integration of style-related commands (shortcut keys). You can access the sample via this link: https://jscodemine.grapecity.com/share/PE4o3LnlyUqhfrj728rnyw/?defaultOpen={“OpenedFileName”:[“/index.html”,“/src/app.ts”],“ActiveFile”:“/src/app.ts”}

    Additionally, if you need further assistance, please refer to the following documentation resources:

    Keyboard Navigation Shortcut: https://www.grapecity.com/spreadjs/docs/features/keyboard-actions/keyboard#additional-keyboard-shortcuts

    CommandManager: https://www.grapecity.com/spreadjs/api/classes/GC.Spread.Commands.CommandManager#class-commandmanager

    I hope this helps! Let me know if you have any further queries.

    Regards,

    Ankit

  • Posted 9 March 2023, 10:42 am EST

    Thank u very much!

    It works

  • Posted 5 September 2025, 12:01 am EST

    any reason this isn’t available as a npm package?

  • Posted 8 September 2025, 11:11 am EST

    Hi,

    We are still investigating the issue at our end. We will let you know about our findings as soon as possible.

    Regards,

    Priyam

  • Posted 9 September 2025, 12:44 am EST

    Hi,

    We’re not certain why it isn’t available as an npm package, so we’ve reached out to the development team for clarification. The internal tracking ID for this is SJS-31431. I’ll update you as soon as I have more information.

    Regards,

    Priyam

  • Posted 16 September 2025, 8:43 am EST

    Hi,

    The devs mentioned that the shortcuts were originally open-sourced so that users could freely build, extend, and import them into their own projects as needed. Most of these shortcuts are based on Excel behavior and have already been integrated into the Designer.

    At this time, there are no plans to publish them as a separate npm package. We will continue to monitor feedback, and if more users express a strong need for an npm package, we can revisit the idea.

    Regards,

    Priyam

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels