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

Space Bar As Keyboard Shortcut Doesn't Work #397

Open
Superkat32 opened this issue Mar 26, 2023 · 5 comments
Open

Space Bar As Keyboard Shortcut Doesn't Work #397

Superkat32 opened this issue Mar 26, 2023 · 5 comments

Comments

@Superkat32
Copy link

LibreSprite version
V1.2-937d0e3d-SDL
Describe the bug

If a shortcut is set to space bar, nothing will happen when the user actually presses space bar. However, LibreSprite seems to recognize that the hotkey is set to space bar, but it doesn't do anything.

To Reproduce

Click the edit button at the top right of the screen, then press Keyboard Shortcuts. Choose any shortcut and set the hotkey to space bar. Click OK, then try pressing space bar. In my case, nothing happened.

Expected behaviour

If an action has space bar as the hotkey, the action should be preformed. For example, if space bar is set as the hotkey for Play Animation, then pressing space bar should play the animation(assuming there is an animation, of course).

OS/Hardware
  • Operative System: Windows 10
  • CPU: AMD FX(tm)-8350 Eight-Core Processor
Screenshots

image
LibreSprite is able to recognize that space bar is the key, but it doesn't do anything.

Additional context

I've tried setting both the New File and the Play Animation actions to have space bar as the hotkey. Nothing happened with either, so I assume this issue applies to every action. Also, with the Play Animation action, if I tried changing it to another hotkey, it works just fine. I've also asked a friend to try setting a shortcut as space bar, and the same thing happens. I struggled to word this bug report well, so if anything is unclear, please let me know.

@orbitalmartian8
Copy link
Contributor

Is Spacebar not default set to the hand tool to move around the canvas?

@Superkat32
Copy link
Author

It seems like the hand tool is set to h by default. Changing it to spacebar(or adding it as an alternative hotkey) recreates the bug. However, I did discover something new. There is a default hotkey for moving the canvas in a direction, something along the lines of shift+space+arrow key, and that works just fine.

@orbitalmartian8
Copy link
Contributor

I've tested and spacebar IS set to the hand tool so when you hold space and clickdrag it'll move the view on the canvas. That might be the cause of this issue.

@Superkat32
Copy link
Author

I've made new discoveries. Setting hand tool to spacebar doesn't seem to do anything, however, setting it to h does something. Setting hand tool (quick) to spacebar works exactly the way you have just described. I've tried to set another hotkey, play animation to spacebar, and that does nothing, however setting the exact same hotkey to ctrl+f, for example, works.

This makes me wonder if the hand tool (quick) is an exception, or if I've messed something up.

@Superkat32
Copy link
Author

Now that I think about it, the hand tool (quick) is most likely set to spacebar by default, but it may have been erased as a hotkey for me because I've set other hotkeys to spacebar.

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

No branches or pull requests

2 participants