|
|
ea97aee |
From c11b6b64f63b3c7f8f8bb0f1857a9c7d8748ba9c Mon Sep 17 00:00:00 2001
|
|
|
ea97aee |
From: David Tardon <dtardon@redhat.com>
|
|
|
ea97aee |
Date: Thu, 12 Mar 2015 15:42:23 +0100
|
|
|
ea97aee |
Subject: [PATCH] add accel. to switch monitors to pres. console
|
|
|
ea97aee |
|
|
|
ea97aee |
Change-Id: I86c458f2c0a1c6a6baa6461a44b68c5f48ea55b0
|
|
|
ea97aee |
---
|
|
|
ea97aee |
officecfg/registry/data/org/openoffice/Office/PresenterScreen.xcu | 8 ++++++++
|
|
|
ea97aee |
sdext/source/presenter/PresenterController.cxx | 5 ++++-
|
|
|
ea97aee |
2 files changed, 12 insertions(+), 1 deletion(-)
|
|
|
ea97aee |
|
|
|
ea97aee |
diff --git a/officecfg/registry/data/org/openoffice/Office/PresenterScreen.xcu b/officecfg/registry/data/org/openoffice/Office/PresenterScreen.xcu
|
|
|
ea97aee |
index 3eb6434..26d9483 100644
|
|
|
ea97aee |
--- a/officecfg/registry/data/org/openoffice/Office/PresenterScreen.xcu
|
|
|
ea97aee |
+++ b/officecfg/registry/data/org/openoffice/Office/PresenterScreen.xcu
|
|
|
ea97aee |
@@ -969,6 +969,14 @@
|
|
|
ea97aee |
<value xml:lang="en-US">Shows the Slides Overview</value>
|
|
|
ea97aee |
</prop>
|
|
|
ea97aee |
</node>
|
|
|
ea97aee |
+ <node oor:name="x" oor:op="replace">
|
|
|
ea97aee |
+ <prop oor:name="Left">
|
|
|
ea97aee |
+ <value xml:lang="en-US">Ctrl-'4'</value>
|
|
|
ea97aee |
+ </prop>
|
|
|
ea97aee |
+ <prop oor:name="Right">
|
|
|
ea97aee |
+ <value xml:lang="en-US">Switches monitors</value>
|
|
|
ea97aee |
+ </prop>
|
|
|
ea97aee |
+ </node>
|
|
|
ea97aee |
</node>
|
|
|
ea97aee |
</node>
|
|
|
ea97aee |
</node>
|
|
|
ea97aee |
diff --git a/sdext/source/presenter/PresenterController.cxx b/sdext/source/presenter/PresenterController.cxx
|
|
|
ea97aee |
index 6c64bd7..e416a73 100644
|
|
|
ea97aee |
--- a/sdext/source/presenter/PresenterController.cxx
|
|
|
ea97aee |
+++ b/sdext/source/presenter/PresenterController.cxx
|
|
|
ea97aee |
@@ -1005,7 +1005,7 @@ void PresenterController::HandleNumericKeyPress (
|
|
|
ea97aee |
|
|
|
ea97aee |
case awt::KeyModifier::MOD1:
|
|
|
ea97aee |
// Ctrl-1, Ctrl-2, and Ctrl-3 are used to switch between views
|
|
|
ea97aee |
- // (slide view, notes view, normal)
|
|
|
ea97aee |
+ // (slide view, notes view, normal). Ctrl-4 switches monitors
|
|
|
ea97aee |
mnPendingSlideNumber = -1;
|
|
|
ea97aee |
if (mpWindowManager.get() == NULL)
|
|
|
ea97aee |
return;
|
|
|
ea97aee |
@@ -1020,6 +1020,9 @@ void PresenterController::HandleNumericKeyPress (
|
|
|
ea97aee |
case 3:
|
|
|
ea97aee |
mpWindowManager->SetViewMode(PresenterWindowManager::VM_SlideOverview);
|
|
|
ea97aee |
break;
|
|
|
ea97aee |
+ case 4:
|
|
|
ea97aee |
+ SwitchMonitors();
|
|
|
ea97aee |
+ break;
|
|
|
ea97aee |
default:
|
|
|
ea97aee |
// Ignore unsupported key.
|
|
|
ea97aee |
break;
|
|
|
ea97aee |
--
|
|
|
ea97aee |
2.3.1
|
|
|
ea97aee |
|