RTL (right to left) keyboard navigation in HTML <TextArea>

I am working with some HTML that contains <textarea>. I am currently testing input of mixed characters LTRand RTLsuch as "abcΨ£Ψ¨Ψ¬ABC".

<div class="mycomment" dir="RTL">
  <form method="get" action="{$self}">
    <input type="hidden" name="Id" value="{$entry}" />
    <textarea name="comment" class="commentarea"/></textarea>
    <br />
    <input class="button" type="submit" value="{$postlink}" />
  </form>
</div>

The line display is correct if, in mode RTL, however, the keyboard navigation is incorrect. In particular, it does not follow the correct order when viewing sections in English and Arabic.

Any ideas on how I can get around or fix this problem?

+3
source share
2 answers

, , , "" . , , Ctrl + >, , - , .

, , , .

LTR, , - ( ). , RTL, , ( ).

:

Ctrl + > " " - " ". RTL - .

, , , , , . , , .

: Ctrl + > , .

- , ...

JavaScript ( ), , "" . , , :

  • . , . ( , , , , , /).
  • . , LTR RTL , , . , , , , . - , , , , - , , , .
  • . , , (, Microsoft) -, , . - , , , .
+1

. , , , RTL LTR, . . , . , Chrome, Ctrl, , .

0

Source: https://habr.com/ru/post/1757020/


All Articles