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

Bug: Can't use backspace as a hotkey combination for quick-action shortcuts #211

Open
2 tasks done
knezmilos13 opened this issue Dec 27, 2024 · 3 comments
Open
2 tasks done
Labels
documentation Improvements or additions to documentation enhancement New feature or request not a bug Expected behaviour

Comments

@knezmilos13
Copy link

Can't use backspace as a hotkey combination for quick-action shortcuts. Using backspace just clears out the "hotkey combination" field.
However, it's possible to still use backspace in a shortcut by manually editing the quickactions.json file and using the "Back" keyword e.g.:

...
{
    "Id": "02931645-0241-45c9-9520-c5d7ce9c10d9",
    "Domain": "Script",
    "Entity": "on_backspace_pressed",
    "Action": "On",
    "HotKeyEnabled": true,
    "HotKey": "Shift, Control, Alt + Back",
    "Description": "Backspace shortcut"
  },
...

This actually works, so the problem seems to be purely on the UI-side. This is how it looks in UI after manual modification:
{519ACEC4-3D0F-4C90-A059-6E6621CFE2F6}

  • Windows build:
    {AE34E0BA-11DC-4B5C-B4E1-EB527C266BA6}

  • HASS.Agent version: 2.1.0

  • Installed via installer

  • Problem occurs in HASS.Agent

@knezmilos13 knezmilos13 added the bug Something isn't working label Dec 27, 2024
@amadeo-alex
Copy link
Collaborator

Replicated, thanks for reporting :)
I'll look into if/how this can be fixed.

@amadeo-alex
Copy link
Collaborator

So, looks like the library that was chosen (and included as dll in the project for some reason?) explicitly treats both backspace and delete as keys to clear the input of potential hotkey.
I'll try to think about a clever solution for this but for now we might be looking at a documentation note in case someone wants to use backspace - @DrR0X-glitch FYi :D

@DrR0X-glitch
Copy link

So, looks like the library that was chosen (and included as dll in the project for some reason?) explicitly treats both backspace and delete as keys to clear the input of potential hotkey.
I'll try to think about a clever solution for this but for now we might be looking at a documentation note in case someone wants to use backspace - @DrR0X-glitch FYi :D

Will definitely add it to the list to add, maybe also needs a quick note in the UI that tells you how to escape? "Press backspace or delete to cancel" would fix that quickly.

@amadeo-alex amadeo-alex added documentation Improvements or additions to documentation enhancement New feature or request not a bug Expected behaviour and removed bug Something isn't working labels Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request not a bug Expected behaviour
Projects
None yet
Development

No branches or pull requests

3 participants