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

Option to Disable Shortcut #1

Open
alansiqueira27 opened this issue Oct 12, 2023 · 4 comments
Open

Option to Disable Shortcut #1

alansiqueira27 opened this issue Oct 12, 2023 · 4 comments

Comments

@alansiqueira27
Copy link

Hi, is it possible to have a flag to disable the shortcuts?
I have a scenario where the user might need to type "{{my_custom_tag}}" in a textbox, and thus the underline shortcut will trigger the zoom out without intent.

Thanks for the plugin,

@gxanshu
Copy link
Owner

gxanshu commented Oct 12, 2023

the plugin is really easy to understand.
if you can give us a PR this will be very helpful.

@alansiqueira27
Copy link
Author

Hi, I'm sorry, I tried but I could not manage to run the original code on my machine, so I cannot test if it works if I do any change.
If you could please do the change....

pluginsOpts: { [zoom]: { zoomInKey: ['ctrl', 'a'], zoomOutKey: ['ctrl', 'b'], } },

I get this error on the [zoom] line:

error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.

@alansiqueira27
Copy link
Author

By the way those variables are not doing anything in the code: zoomInKey and zoomOutKey

@gxanshu
Copy link
Owner

gxanshu commented Oct 14, 2023

currently zoom keys are in development but you can zoom things whin Shift + and Shift -

there are two buttons in the `Panel` to control the canvas if you want the keyboard shortcut then its `shift -` for zoom out and `shift =` for zoom in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants