diff options
author | Matthew J. Francis <mjay.francis@gmail.com> | 2014-08-25 11:32:42 +0800 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2014-08-25 05:41:22 -0500 |
commit | 0350bcde37edb1f25cca68cb1447ba8f759aea15 (patch) | |
tree | e900cebfb5ee6665e973e37d3fe28da499691080 /vcl/osx | |
parent | edc52015c30dd58b4c79fb2642df3d1f1996d8b0 (diff) |
fdo#62054 Enable "Select All", "Undo" and "Redo" in "Save as..." on OS X
Change-Id: I2051f54b0b031dcab4918c8c187ed434842ffdd4
Reviewed-on: https://gerrit.libreoffice.org/11104
Reviewed-by: Tor Lillqvist <tml@collabora.com>
Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'vcl/osx')
-rw-r--r-- | vcl/osx/vclnsapp.mm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vcl/osx/vclnsapp.mm b/vcl/osx/vclnsapp.mm index ea544f7771f7..d1d086f414d1 100644 --- a/vcl/osx/vclnsapp.mm +++ b/vcl/osx/vclnsapp.mm @@ -200,6 +200,24 @@ if( [NSApp sendAction: @selector(cut:) to: nil from: nil] ) return; } + else if( [[pEvent charactersIgnoringModifiers] isEqualToString: @"a"] ) + { + if( [NSApp sendAction: @selector(selectAll:) to: nil from: nil] ) + return; + } + else if( [[pEvent charactersIgnoringModifiers] isEqualToString: @"z"] ) + { + if( [NSApp sendAction: @selector(undo:) to: nil from: nil] ) + return; + } + } + else if( nModMask == (NSCommandKeyMask|NSShiftKeyMask) ) + { + if( [[pEvent charactersIgnoringModifiers] isEqualToString: @"Z"] ) + { + if( [NSApp sendAction: @selector(redo:) to: nil from: nil] ) + return; + } } } } |