summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2018-05-24 19:14:09 +0300
committerTor Lillqvist <tml@collabora.com>2018-05-26 01:44:38 +0200
commit938ec2597be2e0ad3af2fb99f77de7f87285ad86 (patch)
tree66548bf8ac2ea5d09dd490109664a16950b170d6 /vcl
parent674a9ba1877bea5da60aab4c4bfe4605b0cc3066 (diff)
Bin crack presumably related to the removed debug dialog thing
Change-Id: Ic0cdfc837ac8503968c5226ec309e75ff7172a75 Reviewed-on: https://gerrit.libreoffice.org/54801 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/osx/salframeview.mm38
1 files changed, 0 insertions, 38 deletions
diff --git a/vcl/osx/salframeview.mm b/vcl/osx/salframeview.mm
index ca9d44d7ff39..7b670f835695 100644
--- a/vcl/osx/salframeview.mm
+++ b/vcl/osx/salframeview.mm
@@ -152,27 +152,6 @@ static AquaSalFrame* s_pMouseFrame = nullptr;
// which lack that information
static sal_uInt16 s_nLastButton = 0;
-// combinations of keys we need to handle ourselves
-static const struct ExceptionalKey
-{
- const sal_uInt16 nKeyCode;
- const unsigned int nModifierMask;
- const sal_uInt16 nModifiedKeyCode;
- const bool bZeroCharacter;
-} aExceptionalKeys[] =
-{
-SAL_WNODEPRECATED_DECLARATIONS_PUSH
- // 'NSAlternateKeyMask' is deprecated: first deprecated in macOS 10.12
- // 'NSCommandKeyMask' is deprecated: first deprecated in macOS 10.12
- // 'NSControlKeyMask' is deprecated: first deprecated in macOS 10.12
- // 'NSShiftKeyMask' is deprecated: first deprecated in macOS 10.12
- // 'NSNumericPadKeyMask' is deprecated: first deprecated in macOS 10.12
- { KEY_D, NSControlKeyMask | NSShiftKeyMask | NSAlternateKeyMask, KEY_D, true },
- { KEY_D, NSCommandKeyMask | NSShiftKeyMask | NSAlternateKeyMask, KEY_D, true },
- { KEY_POINT, NSNumericPadKeyMask, KEY_DECIMAL, false }
-SAL_WNODEPRECATED_DECLARATIONS_POP
-};
-
static AquaSalFrame* getMouseContainerFrame()
{
AquaSalFrame* pDispatchFrame = nullptr;
@@ -1013,23 +992,6 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
if( [self sendSingleCharacter: mpLastEvent] )
return YES;
}
- unichar keyChar = [pUnmodifiedString characterAtIndex: 0];
- sal_uInt16 nKeyCode = ImplMapCharCode( keyChar );
-
- // Caution: should the table grow to more than 5 or 6 entries,
- // we must consider moving it to a kind of hash map
- const unsigned int nExceptions = SAL_N_ELEMENTS( aExceptionalKeys );
- for( unsigned int i = 0; i < nExceptions; i++ )
- {
- if( nKeyCode == aExceptionalKeys[i].nKeyCode &&
- (mpFrame->mnLastModifierFlags & aExceptionalKeys[i].nModifierMask)
- == aExceptionalKeys[i].nModifierMask )
- {
- [self sendKeyInputAndReleaseToFrame: aExceptionalKeys[i].nModifiedKeyCode character: (aExceptionalKeys[i].bZeroCharacter ? 0 : keyChar) ];
-
- return YES;
- }
- }
}
return NO;
}