Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 0aa2f4b0 authored by Scott Wheeler's avatar Scott Wheeler

Adding global accelerator action for showing / hiding the main window.

There's currently no default set but there are items in the shortcuts
dialog for these actions now.

CCMAIL:71555-done@bugs.kde.org

svn path=/trunk/kdemultimedia/juk/; revision=293884
parent 21dfed5b
......@@ -370,6 +370,8 @@ void JuK::setupGlobalAccels()
KeyDialog::insert(m_accel, "VolumeUp", i18n("Volume Up"), action("volumeUp"), SLOT(activate()));
KeyDialog::insert(m_accel, "VolumeDown", i18n("Volume Down"), action("volumeDown"), SLOT(activate()));
KeyDialog::insert(m_accel, "Mute", i18n("Mute"), action("mute"), SLOT(activate()));
KeyDialog::insert(m_accel, "Show", i18n("Show"), this, SLOT(show()));
KeyDialog::insert(m_accel, "Hide", i18n("Hide"), this, SLOT(hide()));
m_accel->setConfigGroup("Shortcuts");
m_accel->readSettings();
......
......@@ -63,7 +63,15 @@ const KeyDialog::KeyInfo KeyDialog::keyInfo[] = {
{ "Mute",
{ { KShortcut::null(), KShortcut::null() },
{ Qt::CTRL+Qt::ALT+Qt::Key_M, KKey::QtWIN+Qt::ALT+Qt::Key_M },
{ Qt::Key_VolumeMute, Qt::Key_VolumeMute } } }
{ Qt::Key_VolumeMute, Qt::Key_VolumeMute } } },
{ "Show",
{ { KShortcut::null(), KShortcut::null() },
{ KShortcut::null(), KShortcut::null() },
{ KShortcut::null(), KShortcut::null() } } },
{ "Hide",
{ { KShortcut::null(), KShortcut::null() },
{ KShortcut::null(), KShortcut::null() },
{ KShortcut::null(), KShortcut::null() } } }
};
const uint KeyDialog::keyInfoCount = sizeof(KeyDialog::keyInfo) / sizeof(KeyDialog::keyInfo[0]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment