Kaydet (Commit) 0350bcde authored tarafından Matthew J. Francis's avatar Matthew J. Francis Kaydeden (comit) Tor Lillqvist

fdo#62054 Enable "Select All", "Undo" and "Redo" in "Save as..." on OS X

Change-Id: I2051f54b0b031dcab4918c8c187ed434842ffdd4
Reviewed-on: https://gerrit.libreoffice.org/11104Reviewed-by: 's avatarTor Lillqvist <tml@collabora.com>
Tested-by: 's avatarTor Lillqvist <tml@collabora.com>
üst edc52015
......@@ -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;
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment