Skip to content
Commit 494c76dd authored by Mehdi Sadeghi's avatar Mehdi Sadeghi Committed by Sébastien Wilmet
Browse files

Force visual word movements for RTL

Upon pressing Ctrl-arrow keys, swap direction if
the pango direction of the current line is RTL.

Problem description by Daniel Boles:

  Using Ctrl + Left or Right to jump by words was not accounting for the
  possibility that the text was right-to-left. So, the observed direction
  of movement was opposite to the direction of the arrow key pressed. This
  was unintuitive and inconvenient for users editing RTL text.

  This patch gets the Pango direction of the text in the current line when
  Ctrl + an arrow key is pressed, and inverts the direction of movement if
  it is RTL, thus ensuring that the pressed and observed direction match.

https://bugzilla.gnome.org/show_bug.cgi?id=778928
parent 5fe43a10
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