Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-40840

KEY_POWER not mapped to Qt::Key_PowerOff

    XMLWordPrintable

Details

    • c0429719c1a28bb1a0d88862b3a8c84525ee9a48

    Description

      When using evdevkeyboard the power key isn't mapped.

      Proposed patch:

      diff --git a/src/platformsupport/input/evdevkeyboard/qevdevkeyboard_defaultmap_p.h b/src/platformsupport/input/evdevkeyboard/qevdevkeyboard_defaultmap_p.h
      index 3f65666..5e919eb 100644
      --- a/src/platformsupport/input/evdevkeyboard/qevdevkeyboard_defaultmap_p.h
      +++ b/src/platformsupport/input/evdevkeyboard/qevdevkeyboard_defaultmap_p.h
      @@ -639,6 +639,7 @@ const QEvdevKeyboardMap::Mapping QEvdevKeyboardHandler::s_keymap_default[] = {
           { KEY_MUTE,         0xffff, Qt::Key_VolumeMute,     0x00, 0x00, 0x0000 },
           { KEY_VOLUMEDOWN,   0xffff, Qt::Key_VolumeDown,     0x00, 0x00, 0x0000 },
           { KEY_VOLUMEUP,     0xffff, Qt::Key_VolumeUp,       0x00, 0x00, 0x0000 },
      +    { KEY_POWER,        0xffff, Qt::Key_PowerOff,       0x00, 0x00, 0x0000 },
           { KEY_PAUSE,        0xffff, Qt::Key_Pause,          0x00, 0x00, 0x0000 },
           { KEY_STOP,         0xffff, Qt::Key_Stop,           0x00, 0x00, 0x0000 },
           { KEY_SETUP,        0xffff, Qt::Key_Settings,       0x00, 0x00, 0x0000 },
      

      Attachments

        For Gerrit Dashboard: QTBUG-40840
        # Subject Branch Project Status CR V

        Activity

          People

            paeglis Gatis Paeglis
            pjohnsen Pelle Johnsen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes