Bug 131789 - window/desktop screenshot global shortcutkeys do not work
Summary: window/desktop screenshot global shortcutkeys do not work
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-03 17:26 UTC by Niek Beernink
Modified: 2006-08-03 19:42 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Niek Beernink 2006-08-03 17:26:43 UTC
Version:           0.7 (using KDE KDE 3.5.4)
Installed from:    Ubuntu Packages

While testing stuff in KDE, I found that alt+printscrn and ctrl+printscrn do not work. I tried giving them different key combinations and even single keys, but ksnapshot never starts when these are pressed. 

It does start if you press just printscrn. 

As a side note; I'm not quite sure where this key is supposed to be assigned. The application does not have a shortcut set up, nor does it appear in the list of global shortcuts. Where can I find it? I expected it to be listed as "screenshot" before the "window screenshot" shortcut in the miscellaneous branch of the global shortcuts tab.
Comment 1 Richard Moore 2006-08-03 17:46:35 UTC
Reassigning to kwin that's what implements those other shortcuts.
Comment 2 Niek Beernink 2006-08-03 18:18:40 UTC
Thanks Richard I wasn't aware of that.

I found the shortcut for ksnapshot in the input actions module. Disabling the action by checking the respective checkbox did not work, after applying the changes, pressing printscrn ksnapshot still started. Do I have to log in and out for these changes to be activated? (If so, why am I not notified of this?)
Comment 3 Lubos Lunak 2006-08-03 18:44:59 UTC
They do work, the screenshot is in the clipboard.
Comment 4 Lubos Lunak 2006-08-03 19:32:44 UTC
SVN commit 569382 by lunakl:

Be explicit about the screenshots being in clipboard
CCBUG: 131789



 M  +2 -2      kwinbindings.cpp  


--- trunk/KDE/kdebase/workspace/kwin/kwinbindings.cpp #569381:569382
@@ -142,8 +142,8 @@
 	new KAction( i18n("Miscellaneous"), actionCollection, "Group:Miscellaneous" );
 	DEF( I18N_NOOP("Mouse Emulation"),                    Qt::ALT+Qt::Key_F12, slotMouseEmulation() );
 	DEF( I18N_NOOP("Kill Window"),                        Qt::CTRL+Qt::Key_Delete, slotKillWindow() );
-	DEF( I18N_NOOP("Window Screenshot"),                  Qt::ALT+Qt::Key_Print, slotGrabWindow() );
-	DEF( I18N_NOOP("Desktop Screenshot"),                 Qt::CTRL+Qt::Key_Print, slotGrabDesktop() );
+	DEF( I18N_NOOP("Window Screenshot To Clipboard"),     Qt::ALT+Qt::Key_Print, slotGrabWindow() );
+	DEF( I18N_NOOP("Desktop Screenshot To Clipboard"),    Qt::CTRL+Qt::Key_Print, slotGrabDesktop() );
         DEF( I18N_NOOP("Block Global Shortcuts"),           0, slotDisableGlobalShortcuts());
 
 /*This belongs in taskbar rather than here, so it'll have to wait until after 2.2 is done.
Comment 5 Niek Beernink 2006-08-03 19:42:01 UTC
D'oh</homer>

I assumed that ksnapshot would start in the appropriate modes since I'm used to making screenshots on KDE that way. :)