mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
Bug 308017 - Bidi: up/down-arrow sometimes behave incorrectly after switching keyboard layout. patch from Uri Bernstein <uriber@gmail.com>, r=smontagu, sr=roc.
This commit is contained in:
parent
001f97197c
commit
40c9113013
@ -7388,6 +7388,11 @@ nsTypedSelection::SelectionLanguageChange(PRBool aLangRTL)
|
||||
else
|
||||
shell->SetCaretBidiLevel(levelAfter);
|
||||
}
|
||||
|
||||
// The caret might have moved, so invalidate the desired X position
|
||||
// for future usages of up-arrow or down-arrow
|
||||
mFrameSelection->InvalidateDesiredX();
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user