[mythtv-users] Virtual keyboard with MCE remote?

Karl Newman newmank1 at asme.org
Sun Jan 11 06:02:57 UTC 2015


On Sat, Jan 10, 2015 at 6:57 PM, Hika van den Hoven <hikavdh at gmail.com>
wrote:

> Hoi Karl,
>
> Sunday, January 11, 2015, 1:32:44 AM, you wrote:
>
> > On Jan 10, 2015 11:44 AM, "Hika van den Hoven" <hikavdh at gmail.com>
> wrote:
> >>
> >> Hoi Karl,
> >>
> >> Saturday, January 10, 2015, 8:17:07 PM, you wrote:
> >>
> >> > Hi,
> >>
> >>
> >> > I can't seem to get the line edit virtual keyboard to pop up when
> >> > using my MCE remote (Ortek VRC-1100). I'm NOT using lirc; I verified
> >> > with ir-keytable that it is sending KEY_ENTER when I press either
> >> > the OK button or the Enter button on the remote. When I press either
> >> > button on a text edit field, it enters the field in edit mode and I
> >> > can see the cursor in the field, but it won't show the virtual
> >> > keyboard. It does work on my other MythTV machine (combined
> >> > frontend/backend) using lirc, but that translates KEY_ENTER to
> >> > Return. I verified that "Use line edit virtual keyboard" is selected
> >> > under Setup->General (and also verified the setting using MythWeb).
> Any help?
> >>
> >>
> >> > Thanks,
> >>
> >>
> >> > Karl
> >>
> >> Have you checked your key-mappings in mythfrontend?
> >> I did a quick check and I think the relevant mapping is SELECT under
> >> Global. It has Return, Enter and Space with me.
> >> Do all those three work on the keyboard (I think Return and Enter is
> >> differentiated between normal Enter and keypad Enter)
> > Yes, it's set at the default Return, Enter, Space. I didn't look
> > hard but KEY_RETURN doesn't appear to be a Linux keycode.
> > Karl
>
> irrecord -l (--list-namespace) gives the by the kernel recognised keycodes.
>
> And indeed KEY_RETURN is not among them . It should be KEY_ENTER. If I
> remember well the names are not case-sensitive and '_' can be
> exchanged with '-'
>

Yes, it is already KEY_ENTER from the . As far as I can tell, Return is a
QT code. So... I still don't know why it's not working. Snippet from
mythtv/libs/libmythui/mythuitextedit.cpp, around line 536:

        else if (action == "SELECT" && keynum != Qt::Key_Space
                 && GetMythDB()->GetNumSetting("UseVirtualKeyboard", 1) ==
1)
        {
            MythScreenStack *popupStack =
GetMythMainWindow()->GetStack("popup stack");
            MythUIVirtualKeyboard *kb =  new
MythUIVirtualKeyboard(popupStack, this);

            if (kb->Create())
            {
                //connect(kb, SIGNAL(keyPress(QString)),
SLOT(keyPress(QString)));
                popupStack->AddScreen(kb);
            }
            else
                delete kb;

As far as I can tell it looks like it should work, but for some reason it
isn't... Is there a chance it's being shown but not on the screen? I have
only one screen connected, on VGA, but I have used the HDMI connection
previously (but I don't think X saves state like that between runs).

Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20150110/648154ce/attachment.html>


More information about the mythtv-users mailing list