[Libreoffice-commits] core.git: vcl/osx
Matthew J. Francis
mjay.francis at gmail.com
Mon Aug 25 03:41:49 PDT 2014
vcl/osx/vclnsapp.mm | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
New commits:
commit 0350bcde37edb1f25cca68cb1447ba8f759aea15
Author: Matthew J. Francis <mjay.francis at gmail.com>
Date: Mon Aug 25 11:32:42 2014 +0800
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 at collabora.com>
Tested-by: Tor Lillqvist <tml at collabora.com>
diff --git a/vcl/osx/vclnsapp.mm b/vcl/osx/vclnsapp.mm
index ea544f7..d1d086f 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;
+ }
}
}
}
More information about the Libreoffice-commits
mailing list