Text selection via keyboard

Asked

Viewed 56 times

2

Have you stopped to imagine how to select a text from a specific part of your navigation?

For example to select inside a box input we use directional arrows like this: shit +, shit +, shit + and shit +. Or else it’s used Ctrl + a, thus selecting all the text.

But and to select a specific part for a possible Ctrl + c, within my keyboard navigation or tab?

Does anyone know how to solve this accessibility?

  • In Firefox and IE11 just press F7 and select any text with the cursor normally. Only the site is about programming, support issues are outside the scope.

  • I never stopped to imagine it, but I saw by telling me the shortcuts I didn’t know

1 answer

0


Well I believe that it can vary for each OS.

In windows you do the following :

CTRL+F and type in the word you’re looking for

and to navigate you give a ESC the word will already be ready for the CTRL+C, if you want to navigate use :CTRL+LEFT/RIGHT... If you have more than one occurrence, to navigate to the next : CTRL+G.

This in Windows 7...

But there is a solution by HTML also the question of the attribute tabindex that can make the divwhich contains navigable text through the TAB...

Example :

<div tabindex="1">Primeira</div>
<div tabindex="2">Segunda</div>

I will see the compatibilities, because I do not know if all versions accept, but HTML5 yes..

  • I ended up coming to this conclusion too, I saw that the search on the page works as a selector.

  • Gosh, I’m trying to vote UP on your comment. But with tabindex I’m not able to select the vote. Try to vote by tab, see if you can.

  • I have not yet been able to select the vote in your reply, it seems that there is no interaction by tab this element on the page. <div class="vote">&#xA; <input type="hidden" name="_id_" value="184999">&#xA; <a class="vote-up-off" title="Esta resposta é útil">votar a favor</a>&#xA; <span itemprop="upvoteCount" class="vote-count-post ">0</span>&#xA; <a class="vote-down-off" title="Esta resposta não é útil">votar contra</a>&#xA;</div>&#xA;

  • It really had to have something that blocks in the class, because if I’m not mistaken the tag a automatic handle the tab... I’ll give you a kiss and I’ll tell you...

Browser other questions tagged

You are not signed in. Login or sign up in order to post.