Kodi Community Forum

Full Version: Launch global search with edit control
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it possible to use an edit control, so that the user can type their search without showing the keyboard, to run the global search addon?

PHP Code:
                    
<control type="edit" id="10001">
    <
left>0</left>
    <
top>60</top>
    <
hinttext>search</hinttext>
    <
onup>50</onup>
    <
onclick>RunScript(script.globalsearch)</onclick>
</
control

That's what I've tried so far but no dice, once you hit enter it just brings up the keyboard and then doesn't run the addon when you click on 'done'.
No it's not possible. An edit control has no onclick because if it had, how would you enter text with a remote control? The same applies for touch screen devices.
(2014-08-17, 20:28)`Black Wrote: [ -> ]No it's not possible. An edit control has no onclick because if it had, how would you enter text with a remote control? The same applies for touch screen devices.

I was hoping if the field was blank when you clicked it it would open the keyboard and then clicking done would send the original on click.

Never mind, I'll just use a boring old button :p