Created
November 9, 2011 18:44
-
-
Save mk0x9/1352470 to your computer and use it in GitHub Desktop.
Disable annoying hotkeys in unity 2d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Naur unity2d.orig/unity-2d-4.12.0/launcher/app/launcherview.cpp unity2d/unity-2d-4.12.0/launcher/app/launcherview.cpp | |
--- unity2d.orig/unity-2d-4.12.0/launcher/app/launcherview.cpp 2011-09-29 18:12:44.000000000 +0400 | |
+++ unity2d/unity-2d-4.12.0/launcher/app/launcherview.cpp 2011-11-09 22:34:16.760726539 +0400 | |
@@ -164,7 +164,7 @@ | |
/* If the key is released, and was not being held, it means that the user just | |
performed a "tap". Unless we're told to ignore that tap, that is. */ | |
if (!m_superKeyHeld && !m_superPressIgnored) { | |
- Q_EMIT superKeyTapped(); | |
+ //Q_EMIT superKeyTapped(); | |
} | |
/* Otherwise the user just terminated a hold. */ | |
else if(m_superKeyHeld){ | |
diff -Naur unity2d.orig/unity-2d-4.12.0/panel/app/panelmanager.cpp unity2d/unity-2d-4.12.0/panel/app/panelmanager.cpp | |
--- unity2d.orig/unity-2d-4.12.0/panel/app/panelmanager.cpp 2011-09-29 18:12:44.000000000 +0400 | |
+++ unity2d/unity-2d-4.12.0/panel/app/panelmanager.cpp 2011-11-09 22:34:25.680726972 +0400 | |
@@ -129,8 +129,8 @@ | |
/* A F10 keypress opens the first menu of the visible application or of the first | |
indicator on the panel */ | |
- Hotkey* F10 = HotkeyMonitor::instance().getHotkeyFor(Qt::Key_F10, Qt::NoModifier); | |
- connect(F10, SIGNAL(released()), SLOT(onF10Pressed())); | |
+ //Hotkey* F10 = HotkeyMonitor::instance().getHotkeyFor(Qt::Key_F10, Qt::NoModifier); | |
+ //connect(F10, SIGNAL(released()), SLOT(onF10Pressed())); | |
} | |
PanelManager::~PanelManager() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment