From db7a1edeedcee47ebece81bd273148570c305d27 Mon Sep 17 00:00:00 2001 From: Harald Fernengel Date: Wed, 30 Sep 2009 17:38:13 +0000 Subject: [PATCH] use the new AA_MacDontSwapCtrlAndMeta application attribute on MAC OS X to ensure that Konsole gets the raw and unswapped meta keys. This enables us to use CTRL-C in konsole on the mac again :) svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1029769 --- src/Application.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Application.cpp b/src/Application.cpp index e6a7d044b..e03a05007 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -68,6 +68,11 @@ void Application::init() // check for compositing functionality TerminalDisplay::setTransparencyEnabled( KWindowSystem::compositingActive() ); +#if defined(Q_WS_MAC) && QT_VERSION >= 0x040600 + // this ensures that Ctrl and Meta are not swapped, so CTRL-C and friends + // will work correctly in the terminal + setAttribute(Qt::AA_MacDontSwapCtrlAndMeta); +#endif } Application* Application::self()