Correct RTL accelerator arrow keys#2797
Conversation
4ebfe09 to
3730615
Compare
jeremypw
left a comment
There was a problem hiding this comment.
There is some whitespace I would consider superfluous. I try not to leave space between a variable declaration and where it used. Not all existing code may comply!
I have not tested this yet but looks like it does not fully cope with a change in LTR/RTL state "on the fly" as the shortcuts are set up on construction. May be better to have fixed shortcuts (e.g. for action-focus-left and action-focus-right) and deal with the state in the handlers. Not sure how important this is in practice though.
|
Thanks for the review. I'll remove the superfluous whitespace (I'm not completely "fluent" yet in the code style of the project, so thanks for pointing these things out).
The left/right arrow keys for ascending and descending through the hierarchy and for navigating through Icon view do change "on the fly", but the ones for focusing different areas and the ones for Forward / Back do not. I'm not aware of a use case for changing these things on the fly (I think it can only be done using the interactive debugger?) so I don't think it's a big issue myself. |
3730615 to
8be84dd
Compare
|
Yes, you are probably right that its not a problem in practice. I tried switching to an RTL language and although some widgets (e.g. TextView) start typing RTL, the layout of widgets does not change. I guess you either need to use the interactive debugger or change the system locale in settings (needing a new session). I'll test tomorrow. |
8be84dd to
6623016
Compare
|
@stan-janssen Could you resolve the conflicts please? |
This corrects accelerators that include a Left or Right arrow key when using a Right-to-Left (RTL) language, where UI elements are draw from right to left. This includes switching focus to the sidebar, which is on the right side in an RTL situation, as well as the 'drill down' and 'drill up' keys when navigating in list or Miller views, and the arrow keys for selecting the previous and next icon in icon view (the icons are also drawn right to left, with the 'next' icon being on the left of the 'previous' icon in an RTL situation. This also matches the directions of the arrow buttons in the tool bar.
6623016 to
6164bb7
Compare

This corrects accelerators that include a Left or Right arrow key when using a Right-to-Left (RTL) language, where UI elements are draw from right to left.
This includes: