Skip to content

Instantly share code, notes, and snippets.

@Emdek
Created February 2, 2014 12:29
Show Gist options
  • Save Emdek/ed948286df45c87ab9c3 to your computer and use it in GitHub Desktop.
Save Emdek/ed948286df45c87ab9c3 to your computer and use it in GitHub Desktop.
diff --git a/src/modules/backends/web/qtwebkit/QtWebKitWebBackend.cpp b/src/modules/backends/web/qtwebkit/QtWebKitWebBackend.cpp
index b86068f..4dc9ca0 100644
--- a/src/modules/backends/web/qtwebkit/QtWebKitWebBackend.cpp
+++ b/src/modules/backends/web/qtwebkit/QtWebKitWebBackend.cpp
@@ -47,6 +47,7 @@ void QtWebKitWebBackend::optionChanged(const QString &option)
}
QWebSettings *globalSettings = QWebSettings::globalSettings();
+ globalSettings->setAttribute(QWebSettings::SpatialNavigationEnabled, true);
globalSettings->setAttribute(QWebSettings::DnsPrefetchEnabled, true);
globalSettings->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
globalSettings->setAttribute(QWebSettings::PluginsEnabled, SettingsManager::getValue(QLatin1String("Browser/EnablePlugins")).toBool());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment