Jump to the end of text and then the beginning.

Script key: Jump to the end of text and then the beginning.

Posted by Med0paW

Install

Details

Label
Voice Over Jump to the end of text and then the beginning.
Script
// Script keys run short Javascripts
// For documentation and examples, visit:
// http://help.agiletortoise.com

var pos = getSelectedRange()[0];
var len = getText().length;

if (pos == len) { // at end. go to begin
  setSelectedRange(0, 0);
} else { // go to end
  setSelectedRange(len, 0);
}

Advanced

Keyboard shortcut None
Hide key Yes

Discussion

comments powered by Disqus