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

Conflicts with keyboard shortcuts with Studio and macOS #74

Open
iminlikewithyou opened this issue Feb 7, 2025 · 5 comments
Open

Conflicts with keyboard shortcuts with Studio and macOS #74

iminlikewithyou opened this issue Feb 7, 2025 · 5 comments

Comments

@iminlikewithyou
Copy link
Contributor

love this plugin. absolutely lovely to work with compared to the other storybook apps, but keybinds like F and shift, which means i can't toggle Fullscreen or zoom in/out easily. they don't work specifically because Studio is overriding them and won't send them via UserInputService to your plugin. hoping you can fix this or at least make holding down - and = repeatedly zoom in/out would be awesome too instead of me needing to spam these zoom buttons. :)

@PepeElToro41
Copy link
Owner

Hey, Do you know why this is happening?, is it because you have other keybindings with that key?.

They have keybindings and I dont remember having problems with them. They only work when the plugin is focused though, not in the game viewport.

@iminlikewithyou
Copy link
Contributor Author

iminlikewithyou commented Feb 8, 2025

yeah, i'm focused within the plugin. i think i seemed to figure it out though

the keybinds i was specifically having problems with were F (Fullscreen), V (Invert Background), Shift + C (Select Elements), Shift + Scroll (Zoom) the keybind for F and V randomly decided to want to work after a Studio restart, so that's probably just some weird quirk?, but i no matter how many restarts I did, the shift-key combinations never seemed to work (Shift + C and Shift + Scroll).

then i actually realized one of them did work, Mouse Rules (Shift + R), and i got confused because i was unsure why that one worked and the others didn't. turns out, there was a Studio shortcut overriding Shift + C, but i just didn't notice it.
Image
so this is fine, i just have to disable this shortcut. it would probably be better to change the keybind for Select Elements to another that this doesn't override though.

but Shift + Scroll still continued to just do nothing. since i'm on a Mac and not Windows i thought maybe there could maybe be some sort of difference between how Roblox internally handles input or something. but, no, it's just a Mac thing I wasn't aware about:
Image

that makes a whole lot more sense.
in any case, the standard in the design programs i use is control + scroll for zooming in (towards the cursor, but the functionality isn't in UI Labs yet), normal scroll for panning up and down, and optionally shift + scroll for panning left and right (which would not work on Mac, but it's not the most important feature ever anyway)
on Mac, both Control and Command both map to Roblox's LeftControl KeyCode

@iminlikewithyou iminlikewithyou changed the title some keyboard shortcuts can't be captured because Studio overrides them Conflicts with keyboard shortcuts with Studio and macOS Feb 8, 2025
@PepeElToro41
Copy link
Owner

PepeElToro41 commented Feb 13, 2025

Some shortcuts in fact seem to not work. I dont think I can do much with the current api for plugin actions.
Here is a Post about how bad they are

About zooming with shift. I cant replicate this, I did ask mac users and they seem to have no problems with it. It seems like other programs use ctrl + scroll instead for zooming though, so, I can change this with control instead

@iminlikewithyou
Copy link
Contributor Author

iminlikewithyou commented Feb 15, 2025

i implemented this on one of my branches, using ctrl + scroll for zooming, adding zooming in towards the mouse location, and a reset zoom keybind with ctrl + 0. i can submit a PR if you want. the only thing I wasn't sure how to do was create an icon for resetting the zoom so i just reused the reload icon. :P

@PepeElToro41
Copy link
Owner

Sure you can do a PR. Im curious how you added zooming towards the mouse?. I did wanted to implement this, but this would internally also need to edit the position, and I wasnt a big fan of that.

If ctrl works for you, then sure that can be changed.

Probably not the reset zoom keybind, I dont think it's a frequent enough action to give it a shortcut. Right clicking the entry is fast enough imo.

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