longpress ZERO & 1
#1
Hi there,

I'm almost certain the answer is "this cannot be done"
I'm looking for a solution to my problem and i'm sure this will turn into a feature request in the end.

I'm trying to map a keypress so that when i'm in a virtual keyboard, pressing 0 scrolls symbols, but pressing and HOLDING 0 simply sends 0... this is to avoid having to cycle through all the symbols to effectively get to 0. Same goes for the number 1. This is hard to achieve because there is no "JumpSMS0" or "JumpSMS1" action that I can map to the longpress.

below is an example of what my keymap looks like.

<global>
<zero>Number0</zero>
<one>Number1</one>
<two>JumpSMS2</two>
<three>JumpSMS3</three>
<four>JumpSMS4</four>
<five>JumpSMS5</five>
<six>JumpSMS6</six>
<seven>JumpSMS7</seven>
<eight>JumpSMS8</eight>
<nine>JumpSMS9</nine>
</keyboard>
</global>

<VirtualKeyboard>
<keyboard>
<zero>Number0</zero>
<one>Number1</one>
<two>Number2</two>
<two mod="longpress">JumpSMS2</two>
<three>Number3</three>
<three mod="longpress">JumpSMS3</three>
<four>Number4</four>
<four mod="longpress">JumpSMS4</four>
<five>Number5</five>
<five mod="longpress">JumpSMS5</five>
<six>Number6</six>
<six mod="longpress">JumpSMS6</six>
<seven>Number7</seven>
<seven mod="longpress">JumpSMS7</seven>
<eight>Number8</eight>
<eight mod="longpress">JumpSMS8</eight>
<nine>Number9</nine>
<nine mod="longpress">JumpSMS9</nine>
</keyboard>

I've tried adding <zero mod="longpress">Number0</zero> to the "<global>" section, but this does not achieve the desired effect.

Has anyone been able to achieve this?
Reply

Logout Mark Read Team Forum Stats Members Help
longpress ZERO & 10