summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Smith <john.smith7545@yahoo.com>2012-08-28 05:46:52 +0000
committerJohn Smith <john.smith7545@yahoo.com>2012-08-28 05:46:52 +0000
commit63a39634f03f1547888ef54e31ccd4b8c59ab9ee (patch)
tree67cced35aad4687a1d9cea09d6e37516bdfe779d
parentFix for 1042508 : Transform dialog when floating doesnt work on active doc (diff)
downloadinkscape-63a39634f03f1547888ef54e31ccd4b8c59ab9ee.tar.gz
inkscape-63a39634f03f1547888ef54e31ccd4b8c59ab9ee.zip
Fix for 171915 : Fullscreen mode without toolbars shortcut
(bzr r11628)
-rw-r--r--share/keys/default.xml1
-rw-r--r--src/verbs.cpp6
-rw-r--r--src/verbs.h1
3 files changed, 8 insertions, 0 deletions
diff --git a/share/keys/default.xml b/share/keys/default.xml
index f4886e254..14c75e85a 100644
--- a/share/keys/default.xml
+++ b/share/keys/default.xml
@@ -241,6 +241,7 @@ override) the bindings in the main default.xml.
<bind key="F11" action="FullScreen" display="true" />
<bind key="F11" action="FocusToggle" modifiers="Shift" display="true" />
+ <bind key="F11" action="FullScreenFocus" modifiers="Ctrl" display="true" />
<bind key="Tab" modifiers="Ctrl" action="NextWindow" display="true" />
<bind key="ISO_Left_Tab" modifiers="Ctrl" action="NextWindow" />
diff --git a/src/verbs.cpp b/src/verbs.cpp
index 34379d341..2c24ef36a 100644
--- a/src/verbs.cpp
+++ b/src/verbs.cpp
@@ -1784,6 +1784,10 @@ void ZoomVerb::perform(SPAction *action, void *data)
case SP_VERB_FULLSCREEN:
dt->fullscreen();
break;
+ case SP_VERB_FULLSCREENFOCUS:
+ dt->fullscreen();
+ dt->focusMode(!dt->is_fullscreen());
+ break;
#endif // HAVE_GTK_WINDOW_FULLSCREEN
case SP_VERB_FOCUSTOGGLE:
dt->focusMode(!dt->is_focusMode());
@@ -2635,6 +2639,8 @@ Verb *Verb::_base_verbs[] = {
#ifdef HAVE_GTK_WINDOW_FULLSCREEN
new ZoomVerb(SP_VERB_FULLSCREEN, "FullScreen", N_("_Fullscreen"), N_("Stretch this document window to full screen"),
INKSCAPE_ICON("view-fullscreen")),
+ new ZoomVerb(SP_VERB_FULLSCREENFOCUS, "FullScreenFocus", N_("Fullscreen & Focus Mode"), Glib::ustring::format(N_("Stretch this document window to full screen"), N_(" and "), N_("Remove excess toolbars to focus on drawing")).c_str(),
+ INKSCAPE_ICON("view-fullscreen")),
#endif // HAVE_GTK_WINDOW_FULLSCREEN
new ZoomVerb(SP_VERB_FOCUSTOGGLE, "FocusToggle", N_("Toggle _Focus Mode"), N_("Remove excess toolbars to focus on drawing"),
NULL),
diff --git a/src/verbs.h b/src/verbs.h
index 3095d3e87..2f0ae85c1 100644
--- a/src/verbs.h
+++ b/src/verbs.h
@@ -228,6 +228,7 @@ enum {
SP_VERB_ZOOM_2_1,
#ifdef HAVE_GTK_WINDOW_FULLSCREEN
SP_VERB_FULLSCREEN,
+ SP_VERB_FULLSCREENFOCUS,
#endif /* HAVE_GTK_WINDOW_FULLSCREEN */
SP_VERB_FOCUSTOGGLE,
SP_VERB_VIEW_NEW,