Kaydet (Commit) 04ab8aeb authored tarafından Niklas Johansson's avatar Niklas Johansson Kaydeden (comit) Samuel Mehrbrodt

Allow non ASCII chars as accelerator part 2

This is a follow up patch to the commit:
b80be502
This takes care of exposing non ascii characters to atk so that the
orca screen reader has a chance to present these characters to it's users.
I was considering removing the KeyCode bits all toghether and rely on
what we get from KeyChar but got cold feet in the end.

Change-Id: I7a3e78c47b81f8b36763c56e0298e8bbf226dccf
Reviewed-on: https://gerrit.libreoffice.org/19105Reviewed-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Tested-by: 's avatarSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
üst fe4412c8
...@@ -203,6 +203,12 @@ appendKeyStrokes(OStringBuffer& rBuffer, const uno::Sequence< awt::KeyStroke >& ...@@ -203,6 +203,12 @@ appendKeyStrokes(OStringBuffer& rBuffer, const uno::Sequence< awt::KeyStroke >&
if( c != '\0' ) if( c != '\0' )
rBuffer.append( c ); rBuffer.append( c );
else
{
// The KeyCode approach did not work, probably a non ascii character
// let's hope that there is a character given in KeyChar.
rBuffer.append( OUStringToGChar( OUString( rKeyStrokes[i].KeyChar ) ) );
}
} }
} }
} }
......
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