diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-15 11:10:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-15 11:17:27 +0000 |
commit | 508c020cf5f7999f0c23d972133f9b6bf85de245 (patch) | |
tree | 9f3b7164d450040eff9353fbb2da01ed25800539 /sw/source | |
parent | 313d7125eaf87f7af2af6bc1a6d1bac8fc7b2f0e (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 'sw/source')
-rw-r--r-- | sw/source/uibase/docvw/edtwin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/edtwin.cxx b/sw/source/uibase/docvw/edtwin.cxx index 61d1093871a1..7001bf040ae6 100644 --- a/sw/source/uibase/docvw/edtwin.cxx +++ b/sw/source/uibase/docvw/edtwin.cxx @@ -5383,8 +5383,8 @@ void SwEditWin::Command( const CommandEvent& rCEvt ) break; case COMMAND_MODKEYCHANGE : { - const CommandModKeyData* pCommandData = static_cast<const CommandModKeyData*>(rCEvt.GetEventData()); - if(pCommandData->IsMod1() && !pCommandData->IsMod2()) + const CommandModKeyData* pCommandData = rCEvt.GetModKeyData(); + if (pCommandData->IsMod1() && !pCommandData->IsMod2()) { sal_uInt16 nSlot = 0; if(pCommandData->IsLeftShift() && !pCommandData->IsRightShift()) |