summaryrefslogtreecommitdiff
path: root/sd/source/ui/app/sdmod1.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-01-15 11:10:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-01-15 11:17:27 +0000
commit508c020cf5f7999f0c23d972133f9b6bf85de245 (patch)
tree9f3b7164d450040eff9353fbb2da01ed25800539 /sd/source/ui/app/sdmod1.cxx
parent313d7125eaf87f7af2af6bc1a6d1bac8fc7b2f0e (diff)
Resolves: fdo#32664 pass keyboard media keys through to the OS
if we didn't make use of them. Change-Id: Iee1c2fef5966a614b068c832bf8c6b51973b4c8a
Diffstat (limited to 'sd/source/ui/app/sdmod1.cxx')
-rw-r--r--sd/source/ui/app/sdmod1.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx
index 672ccdd17879..cba122f4c784 100644
--- a/sd/source/ui/app/sdmod1.cxx
+++ b/sd/source/ui/app/sdmod1.cxx
@@ -428,7 +428,9 @@ IMPL_LINK( SdModule, EventListenerHdl, VclSimpleEvent*, pEvent )
if( rEvent.GetCommand() == COMMAND_MEDIA )
{
- switch( rEvent.GetMediaCommand() )
+ CommandMediaData* pMediaData = rEvent.GetMediaData();
+ pMediaData->SetPassThroughToOS(false);
+ switch (pMediaData->GetMediaId())
{
case MEDIA_COMMAND_PLAY:
{
@@ -441,10 +443,10 @@ IMPL_LINK( SdModule, EventListenerHdl, VclSimpleEvent*, pEvent )
if( pViewShell && (pDocShell->GetDocumentType() == DOCUMENT_TYPE_IMPRESS) )
pViewShell->GetViewFrame()->GetDispatcher()->Execute( SID_PRESENTATION );
}
- }
break;
-
+ }
default:
+ pMediaData->SetPassThroughToOS(true);
break;
}
}