Bug 305702 - Make Ctrl+0 default shortcut for Actual Size
Summary: Make Ctrl+0 default shortcut for Actual Size
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdeui (show other bugs)
Version: 4.9-Git
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-24 09:48 UTC by Kai Uwe Broulik
Modified: 2018-10-20 21:34 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.50


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Uwe Broulik 2012-08-24 09:48:05 UTC
You can zoom in with Ctrl+Plus and out with Ctrl+Minus but you cannot set it back to actual size (100%) via keystroke by default.

Ctrl+0 should become default shortcut for this.

Reproducible: Always
Comment 1 Martin Koller 2012-08-24 11:29:08 UTC
I'm using the KDE Standard Action "ActualSize". No other KDE application I tested has CTRL+0 as default shortcut for this action, but if it makes sense to have a default, then it should be the global default defined in the KStandardAction class.
Comment 2 Kai Uwe Broulik 2012-08-25 10:42:08 UTC
Ah, right, ActualSize is not set by default in Global shortcuts. But Zoom in is Ctrl+Plus and Zoom out is Ctrl+Minus, so ActualSize should be Ctrl+0 imho
Comment 3 Christoph Feck 2012-08-25 17:50:12 UTC
I doubt we should add or change default shortcuts, as they might conflict with other shortcuts the user or the application developer has set.

Let's say you update to KDE 4.10, and now whenever you hit Ctrl+0 (which you had assigned to, say, "Eraser" tool), it would show a message about conflicting shortcuts.
Comment 4 Peter Mühlenpfordt 2018-08-11 11:15:50 UTC
Git commit f651a817ab004b64e8fcd5b4b8fa5141de10995f by Peter Mühlenpfordt.
Committed on 11/08/2018 at 11:10.
Pushed by muhlenpfordt into branch 'master'.

Set system default shortcut Ctrl+0 for "Actual Size" action

Summary:
Default shortcuts for zoom in ({key Ctrl +}) and out ({key Ctrl -})
already exists but not for going back to 100%.
The shortcut {key Ctrl 0} is widely used by different applications
for zoom to original size. This patch adds {key Ctrl 0} as system
default for `KStandardAction::ActualSize`.
FIXED-IN: 5.50

Test Plan:
Searched lxr for conflicts of `KStandardAction::ActualSize` and
usage of Ctrl+0 shortcut.
Checked the following applications with set system default shortcut:
* Gwenview
* KAlgebra
* KolourPaint
* KStars (FITS viewer)
* Cirkuit
Only Cirkuit uses Ctrl+0 for "Zoom To Fit" action. I'll create a
patch to solve this conflict.

Reviewers: dfaure, broulik, ngraham, rkflx

Reviewed By: dfaure, ngraham, rkflx

Subscribers: jriddell, rkflx, kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D14201

M  +1    -1    src/gui/kstandardshortcut.cpp

https://commits.kde.org/kconfig/f651a817ab004b64e8fcd5b4b8fa5141de10995f