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
This commit is contained in:
Harald Fernengel
2009-09-30 17:38:13 +00:00
parent f7ee91d6de
commit db7a1edeed

View File

@@ -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()