Move cursor to right, or +1 to selection.

Script key: Move cursor to right, or +1 to selection.

Posted by shirose_jp

Install

Details

Label
Voice Over Move cursor to right, or +1 to selection.
Script
// Move cursor to right, or +1 to selection.
// カーソルを右へ移動(選択範囲を1増)

var range = getSelectedRange();

if ( isSelect() === true ) {
  setSelectedRange( range[0], range[1] + 1 );
} else {
  setSelectedRange( range[0] + 1, 0 );
}

function isSelect() {
  if ( getSelectedText().length > 0 ) {
    return true;
  } else {
    return false;
  }
}

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus