Avoid open keyboard on ControlEdit
#1
Hi,

I want to avoid to open onscreen keyboard when I press the enter key. Is this possible? I suspect I need to modify the keymap for my screen but I don't know how.
I want to write from a barcode reader and detect the enter key to change to another window. Is this possible?

Code:
<control type="edit" id="3011">
            <description>Read data</description>
            <posx>300</posx>
            <posy>250</posy>
            <width>250</width>
            <visible>true</visible>
            <aligny>center</aligny>
            <label></label>
            <hinttext></hinttext>
            <font>font14</font>
            <textoffsetx>10</textoffsetx>
            <textcolor>FFB2D4F5</textcolor>
            <disabledcolor>FF000000</disabledcolor>
            <invalidcolor>FFFFFFFF</invalidcolor>
            <texturefocus>button-focus.png</texturefocus>
            <texturenofocus>button-nofocus.png</texturenofocus>
            <pulseonselect>no</pulseonselect>
        </control>

Thanks in advance
Reply
#2
Hi,

the answer is yes. As 'Black says in another post you need to create an keyboard.xml file in XBMC\userdata\keymaps\ directory and override the enter and return keys. Something like that.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
    <global>
    <keyboard>
      <return>noop</return>
      <enter>noop</enter>
    </keyboard>
  </global>
</keymap>
Reply
#3
It might only be possible with a custom DialogKeyboard.xml which executes a custom action just in that case when it's opened from an edit control.
Image
Reply
#4
Hi `Black,

What do you mean with this:

"custom DialogKeyboard.xml which executes a custom action". I use the "standard" dialog keyboard and it works for me. An example is welcomed. Wink

Thanks
Reply
#5
I think it's not possible because an edit control has no <onfocus> attribute where you could set a variable so you can't know that you are coming from an edit control if the keyboard gets activated.
Image
Reply
#6
Hi `Black,

Thanks for the clarification.

Best regards
Reply

Logout Mark Read Team Forum Stats Members Help
Avoid open keyboard on ControlEdit0