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

Wrong get KEY_PAD modifier when using qws

    XMLWordPrintable

Details

    Description

      Wrong get KEY_PAD modifier when using qws
      Here is solution:
      before:

      bool QETWidget::translateKeyEvent(const QWSKeyEvent event, bool grab) / grab is used in the #ifdef */
      {
      int code = -1;
      //### Qt assumes keyboard state is state before, while QWS uses state after the event
      static Qt::KeyboardModifiers oldstate;
      Qt::KeyboardModifiers state = oldstate;
      oldstate = event->simpleData.modifiers;
      

      after:

      // FIXME
      static Qt::KeyboardModifiers oldstate;
      oldstate = event->simpleData.modifiers; <<------------------ it helps
      Qt::KeyboardModifiers state = oldstate;
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            pozitiffcat Alexey Malchenko
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes