mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
* Dov's patch to make typing possible again if RTL support is disabled.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18761 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
70f279616c
commit
fd44c4ffdf
@ -628,15 +628,14 @@ boost::tuple<pit_type, pos_type, int> BufferView::moveToPosition(pit_type bottom
|
||||
|
||||
void BufferView::translateAndInsert(char_type c, Text * t, Cursor & cur)
|
||||
{
|
||||
if (!lyxrc.rtl_support)
|
||||
return;
|
||||
|
||||
if (cursor_.innerText()->real_current_font.isRightToLeft()) {
|
||||
if (intl_->keymap == Intl::PRIMARY)
|
||||
intl_->keyMapSec();
|
||||
} else {
|
||||
if (intl_->keymap == Intl::SECONDARY)
|
||||
intl_->keyMapPrim();
|
||||
if (lyxrc.rtl_support) {
|
||||
if (cursor_.innerText()->real_current_font.isRightToLeft()) {
|
||||
if (intl_->keymap == Intl::PRIMARY)
|
||||
intl_->keyMapSec();
|
||||
} else {
|
||||
if (intl_->keymap == Intl::SECONDARY)
|
||||
intl_->keyMapPrim();
|
||||
}
|
||||
}
|
||||
|
||||
intl_->getTransManager().translateAndInsert(c, t, cur);
|
||||
|
Loading…
Reference in New Issue
Block a user