Req suggestion for a "repeat" mod to keymap files.
#1
Hi Guys,

Ok, things have been awesome since the addition of 'longpress' mod in the keymaps department...
however, i think we now need a new "longpressrepeat" mod to kodi's keymapping.
Currently if a global map is set eg:<backspace mod="longpress">ActivateWindow(Home)</backspace>

then there is no way of holding down backspace in virtual keyboard to quickly remove text... Backspace has to be pushed one press at a time, which is painful when you are trying to rename a large file or script path etc with a remote control.

Holding Shift-Backspace does work, but that's only useful if you're using a keyboard or have a dedicated button on your remote mapped to "shift-backspace". Let's face it, what percentage of users use a keyboard to control their TV?

my suggestion is to add a "longpressrepeat" mod that would basically cancel out a "longpress" and act like a single repeating key until released. This would mean you can sepperate the two mods from one another that way we could set something like this for virtualkeyboad:
<backspace mod="longpressrepeat">backspace</backspace>

and leave
<backspace mod="longpress">ActivateWindow(Home)</backspace> in the global mappings...

where longpresspeat is detected would cancel out a longpress mod mapped to the same action in global or the current window.


Can this be done?

Cheers,

Loggio.
Reply
#2
Since https://github.com/xbmc/xbmc/pull/8430 , you can do "<backspace mod="longpress"></backspace>" to cancel the longpress mapping in a custom keymap, notably in <virtualkeyboad>
Reply
#3
I'm working on a keymap that allows backspace to work in the virtual keyboard. It's up to Team Kodi if they want to use it for v16 by default (I will open a PR soon), but at the very least it will be on the wiki already-made.
Reply
#4
(2015-12-08, 12:42)Koying Wrote: Since https://github.com/xbmc/xbmc/pull/8430, you can do "<backspace mod="longpress"></backspace>" to cancel the longpress mapping in a custom keymap, notably in <virtualkeyboad>

This does not achieve the desired effect.
Your link is dead by the way.
Reply
#5
(2015-12-08, 14:53)Ned Scott Wrote: I'm working on a keymap that allows backspace to work in the virtual keyboard. It's up to Team Kodi if they want to use it for v16 by default (I will open a PR soon), but at the very least it will be on the wiki already-made.

If you could drop a reply here when you've made progress on this that would be awesome. Thanks!
Reply
#6
I've got to do that sync pull merge whatever thing to make my github fork back up to date (something with "computers"), so I won't do the PR just yet, but here's the modified file I'm working on so far: https://github.com/NedScott/xbmc/blob/ke...yboard.xml
Reply
#7
Ok, so basically just removing the global longpress mod and inserting it individually into each section. I've done this already to get things working, which is fine really... And the only way to have things work correctly with current Jarvis is to do it this way


My suggestion for a new mod is to simplify things in that respect, to have the theoretical longpressrepeat function cancel out the global longpress mod when a window has a longpressrepeat mod against it.

Thanks Ned!
Reply
#8
Hopefully we can make this the default, at least for the Jarvis release. I need to test the keymap to make sure some ot the minor clean up stuff didn't break anything. Also, I'm not sure what windows are "parents" to other windows, which could reduce the number of sections with the home long press.
Reply
#9
@ned Scott please take time to check http://forum.kodi.tv/showthread.php?tid=...pid2181359

From my tests long press left / right on virtual keyboard is also problematic
Reply

Logout Mark Read Team Forum Stats Members Help
suggestion for a "repeat" mod to keymap files.0