Sfoglia il codice sorgente

Make sure we cancel autorepeat when switching webmodes

This is a fix for https://github.com/plexinc/plex-media-player-private/issues/517

When switching webmodes, we never get the up event. The inputhandler is probably reset as the window content changes.

This will ensure that any pending action like Ctrl-M will not continue triggering the toggle.
Lionel CHAZALLON 8 anni fa
parent
commit
5532a54b8a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/ui/KonvergoWindow.cpp

+ 1 - 1
src/ui/KonvergoWindow.cpp

@@ -303,7 +303,7 @@ void KonvergoWindow::updateMainSectionSettings(const QVariantMap& values)
     SystemComponent::Get().setCursorVisibility(!SettingsComponent::Get().value(SETTINGS_SECTION_MAIN, "disablemouse").toBool());
   }
 
-  if (values.contains("alwaysOnTop") || values.contains("fullscreen"))
+  if (values.contains("alwaysOnTop") || values.contains("fullscreen") || values.contains("webMode"))
   {
     InputComponent::Get().cancelAutoRepeat();
     updateWindowState();