iTwin / itwinjs-core

Monorepo for iTwin.js Library
https://www.itwinjs.org
MIT License
597 stars 210 forks source link

unable to access keybordshortcut #5921

Closed abhijitpatil181171 closed 2 months ago

abhijitpatil181171 commented 1 year ago

const handleIModelAppInit = () => { UiFramework.keyboardShortcuts.loadShortcuts( AccuDrawKeyboardShortcuts.getDefaultShortcuts() ); }; In above code i am getting error at keybordshortcut saying Property 'keyboardShortcuts' does not exist on type 'typeof UiFramework'.ts i have imported uiframework also then what is issue?


⚠ Do not edit this section. It is required for imodeljs.github.io ➟ GitHub issue linking

raplemie commented 1 year ago

Hi, which version of the packages are you using ? keyboardShortcuts was introduced in 3.7.0.

GerardasB commented 2 months ago

Closing this issue due to inactivity. As suggested above, UiFramework.keyboardShortcuts is available from 3.7.0 https://www.itwinjs.org/changehistory/3.7.0/#static-manager-classes