news
news copied to clipboard
Keyboard schortcuts stopped working
IMPORTANT
Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)
- [x] I have read the CONTRIBUTING.md and followed the provided tips
- [x] I accept that the issue will be closed without comment if I do not check here
- [x] I accept that the issue will be closed without comment if I do not fill out all items in the issue template.
Explain the Problem
What problem did you encounter?
I used to use j,k,l keys for reading it stopped to work
Steps to Reproduce
Explain what you did to encounter the issue while reading pres j - it does not jump to the next message.
System Information
- News app version: 25.0.0-alpha2
- Nextcloud version: 28.0.0 beta 3
- Browser and version: Firefox and Chrome
- OS and version: Linux Fedora
This is correct, the alpha is not feature complete yet.
@SMillerDev, what would be a good starting point if someone would want to work on that feature?
Probably the existing code, the old code and some other apps that have keyboard shortcuts. I have no real idea how to do this either (otherwise I would have)
Thank you, I haven't researched yet on how to do it the "Vue.js way". 😉
I found https://rogeriotaques.github.io/vue-hotkeys-rt/, but it needs Ctrl/CMD.
So maybe just using @keyup on something, like <input @keyup.a="onPressA" />. 🤔
Hey, while I have no Idea about php I found this: https://www.npmjs.com/package/vue-shortkey which seems to do what you want?
Looks good too, thank you.
@Grotax, I also tried to get a "reload" r shortcut working again, but still wasn't able to figure out how to properly reload the current item list. I've tried several things, e.g. in https://github.com/pbek/nextcloud-news/commit/d05e10e3f81a00cabc8a858bc017b407f0e957cc... Any hints?
No how should I know since I started working on News in 2019 I haven't touched the frontend code in any meaningful way.
Already before that it was heavily unmaintained and deprecated.
That is why I asked in the forum for a frontend maintainer. Some to look after the frontend code and to review PRs and stuff...
But so far no reply
Thank you, then I'll try to find a workaround. 😊
just wanted to say thank you to you both @pbek and @Grotax
unfortunately I cannot really code at all but if there is something I could help with let me know please
Thank you very much!