Keyboard shortcuts messing up description/comment text fields in iOS/Safari #1830

Closed
opened 2021-09-21 21:27:02 +00:00 by OrangePony · 6 comments

Under iOS Safari (tested under iOS 14.4.2) all active single-key keyboard shortcuts ('a', 'l', 'd', 'f', 'r') trigger their respective action even when typed in from a description and/or title field.

In the attached video, you can see what happens when an 'a' and an 'l' are typed into a Description field. This does not happen in the 'Labels', 'Assignees' nor 'Title' text boxes.

This makes the frontend mostly unusable in the current state under iOS. Could these shortcuts perhaps be disabled under iOS for the time being? Can they be disabled manually in an easy way?

Under iOS Safari (tested under iOS 14.4.2) all active single-key keyboard shortcuts ('a', 'l', 'd', 'f', 'r') trigger their respective action even when typed in from a description and/or title field. In the attached video, you can see what happens when an 'a' and an 'l' are typed into a Description field. This does not happen in the 'Labels', 'Assignees' nor 'Title' text boxes. This makes the frontend mostly unusable in the current state under iOS. Could these shortcuts perhaps be disabled under iOS for the time being? Can they be disabled manually in an easy way?
konrad added the
kind/bug
label 2021-09-21 21:57:36 +00:00
Owner

I'm guessing this is caused by these fields using contenteditable instead of "real" input fields. Since this seems to only happen on ios mobile, I think we can get away with just disabling the shortcuts in that case.

@dpschen Do you have a good idea how to solve this without disabling them?

Safari really is the new IE.

I'm guessing this is caused by these fields using contenteditable instead of "real" input fields. Since this seems to only happen on ios mobile, I think we can get away with just disabling the shortcuts in that case. @dpschen Do you have a good idea how to solve this without disabling them? _Safari really is the new IE._
Author

This seems like an acceptable workaround, given that these shortcuts are basically useless from a mobile device IMHO.

This seems like an acceptable workaround, given that these shortcuts are basically useless from a mobile device IMHO.
Member

Maybe this pull request solves this: vikunja/frontend#775
I think it makes sense to prevent the shortcuts while editing in the field, because they kind of can't work :D

Or is that what you meant by disabling the shortcuts in that case @konrad?

I have an iPhone but my vikunja setup is currently really crappy docker-compose where I don't know how to make the api available via the network, so I couldn't test the fix. Safari on macOS doesn't seem to have that problem (couldn't reproduce the error in the first place). @OrangePony maybe you can test :)

Maybe this pull request solves this: https://kolaente.dev/vikunja/frontend/pulls/775 I think it makes sense to prevent the shortcuts while editing in the field, because they kind of can't work :D Or is that what you meant by <q>disabling the shortcuts</q> in that case @konrad? I have an iPhone but my vikunja setup is currently really crappy docker-compose where I don't know how to make the api available via the network, so I couldn't test the fix. Safari on macOS doesn't seem to have that problem (couldn't reproduce the error in the first place). @OrangePony maybe you can test :)
Owner

Or is that what you meant by "disabling the shortcuts" in that case

@dpschen Yeah either that or disabling shortcuts on mobile all together. The fix in your pr seems a lot simpler though so I think we can merge that and the problem should go away.

You should be able to download a darwin api binary from here - in theory that should be exposed to the network by default. (but I don't know anything about MacOS firewall settings)
Another option would be to use the api from try with your frontend - as long as you have figured out how to access the frontend you're building on your PC on the iPhone, you should be able to change the URL to that (in the browser).

> Or is that what you meant by "disabling the shortcuts" in that case @dpschen Yeah either that or disabling shortcuts on mobile all together. The fix in your pr seems a lot simpler though so I think we can merge that and the problem should go away. You should be able to download a darwin api binary from [here](https://dl.vikunja.io/api/unstable) - in theory that should be exposed to the network by default. (but I don't know anything about MacOS firewall settings) Another option would be to use the api from try with your frontend - as long as you have figured out how to access the frontend you're building on your PC on the iPhone, you should be able to change the URL to that (in the browser).
Author

Hello! I can confirm that pull request #775 works fine, just tested locally with an iPhone! All "one key" keyboard shortcuts work fine.

Hello! I can confirm that pull request #775 works fine, just tested locally with an iPhone! All "one key" keyboard shortcuts work fine.
Owner

Sounds great! I'm closing this as resolved, feel free to reopen if you have any other issues.

Sounds great! I'm closing this as resolved, feel free to reopen if you have any other issues.
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#1830
No description provided.