src/mixins/multipleSelection.js
/**
     * Select whole range from the initTag to the beginning or end of the tags
     */
Select whole range from the initTag to the beginning or end of the tags
Select whole range from the initTag to the beginning or end of the tags
selectToDirections(key) {
      if (this.metaKey && this.shiftKey) {
        if (key === 'ArrowRight') {
          this.selectRangeActiveTags(this.initTagIndex, this.selectedTags.length);
          if (this.input.length) {
            this.$refs.input.select();
          } else {
            this.$refs.selectedTags.focusTag(this.selectedTags[this.selectedTags.length - 1]);
          }
        } else if (key === 'ArrowLeft') {
          this.selectRangeActiveTags(0, this.initTagIndex + 1);
          if (!this.input.length) {
            this.$refs.selectedTags.focusTag(this.selectedTags[0]);
          }
        }
      }
    }
selectToDirections ( key ) { if ( this . metaKey && this . shiftKey ) { if ( key === 'ArrowRight' ) { this . selectRangeActiveTags ( this . initTagIndex , this . selectedTags . length ) ; if ( this . input . length ) { this . $refs . input . select ( ) ; } else { this . $refs . selectedTags . focusTag ( this . selectedTags [ this . selectedTags . length - 1 ] ) ; } } else if ( key === 'ArrowLeft' ) { this . selectRangeActiveTags ( 0 , this . initTagIndex + 1 ) ; if ( ! this . input . length ) { this . $refs . selectedTags . focusTag ( this . selectedTags [ 0 ] ) ; } } } }
Select whole range from the initTag to the beginning or end of the tags
Select whole range from the initTag to the beginning or end of the tags
// Select all from cursor to end of the tags // Focus tag at the end of the tags // Select all from cursor to beginning of the tags // Focus tag at the beginning of the tags