copy / paste using ctrl-c and ctrl-v

23 views
Skip to first unread message

Russell Nelson

unread,
Apr 17, 2018, 6:07:11 PM4/17/18
to jsTree
I would like my users to be able to select tree entities, copy them using ctrl-c, move the focus elsewhere, then copy them using ctrl-v. Had to play around a bit, but this is working for me:

    $('#left').jstree({
    'core' : {
      'keyboard': {
          'ctrl-x': function(e) { options_cut(); },
          'ctrl-c': function(e) { options_copy(); },
          'ctrl-v': function(e) { options_paste(); },
        },
      },

I don't need the event because I use the selection.
Reply all
Reply to author
Forward
0 new messages