summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew J. Francis <mjay.francis@gmail.com>2014-08-25 11:32:42 +0800
committerTor Lillqvist <tml@collabora.com>2014-08-25 05:41:22 -0500
commit0350bcde37edb1f25cca68cb1447ba8f759aea15 (patch)
treee900cebfb5ee6665e973e37d3fe28da499691080
parentedc52015c30dd58b4c79fb2642df3d1f1996d8b0 (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>
-rw-r--r--vcl/osx/vclnsapp.mm18
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;
+ }
}
}
}