summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorNiklas Johansson <sleeping.pillow@gmail.com>2015-10-03 00:02:51 +0200
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2015-10-14 06:10:23 +0000
commit04ab8aeb7a11205c0cf8cb26eb2395a43011435f (patch)
tree62ed50239d60b04a83f4153499f104f7db13e030 /vcl/unx
parentfe4412c8850bd1212dce786510dd61ddd6c43b36 (diff)
Allow non ASCII chars as accelerator part 2
This is a follow up patch to the commit: b80be50268f534e215d36d69b93d3f51d9410ace 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/19105 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk/a11y/atkaction.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/unx/gtk/a11y/atkaction.cxx b/vcl/unx/gtk/a11y/atkaction.cxx
index 71f072f2fabe..7bdf93206c63 100644
--- a/vcl/unx/gtk/a11y/atkaction.cxx
+++ b/vcl/unx/gtk/a11y/atkaction.cxx
@@ -203,6 +203,12 @@ appendKeyStrokes(OStringBuffer& rBuffer, const uno::Sequence< awt::KeyStroke >&
if( c != '\0' )
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 ) ) );
+ }
}
}
}