Results 1 to 4 of 4

Thread: Extjs6 : Get Clipboard data on Keydown event of combobox

  1. #1

    Default Extjs6 : Get Clipboard data on Keydown event of combobox

    I need to have access to the clipboard Data on keydown event in Extjs Combobox, to perform some operation.

    I tried with window.clipboardData.
    Please find the fiddle :
    https://fiddle.sencha.com/#fiddle/1cc2


    Ext.create('Ext.form.field.Tag',{
    renderTo:Ext.getBody(),
    createNewOnEnter:true,
    store:[1,2,3],
    enableKeyEvents:true,
    listeners:{
    keydown:function(combo,e){
    if(e.getKey() === e.V && e.ctrlKey){
    //get Clipboard data here
    combo.preventKeyUpEvent = e.V;
    e.stopEvent();
    }else{
    }
    }
    }
    });

  2. #2
    Sencha Premium User StuartAshworth's Avatar
    Join Date
    Feb 2009
    Location
    Glasgow, Scotland
    Posts
    418
    Answers
    17

    Default

    You could try using a library like Clipboard.js (https://clipboardjs.com/) to handle the clipboard access.
    SenchaTalk.com - a free Slack community for all things Sencha. Join Now!

    Learn Ext JS 6 with my new ebook - Ext JS 6: Getting Started. Get a Sample Chapter now!

    Need help with Sencha development, code reviews or training? Get in touch!

    [email protected]
    @StuartAshworth9

  3. #3

    Default

    I got a solution for this problem. please follow the thread.http://stackoverflow.com/questions/3...nt-of-combobox

  4. #4
    Sencha Premium User StuartAshworth's Avatar
    Join Date
    Feb 2009
    Location
    Glasgow, Scotland
    Posts
    418
    Answers
    17

    Default

    Nice one! Thanks for sharing the solution
    SenchaTalk.com - a free Slack community for all things Sencha. Join Now!

    Learn Ext JS 6 with my new ebook - Ext JS 6: Getting Started. Get a Sample Chapter now!

    Need help with Sencha development, code reviews or training? Get in touch!

    [email protected]
    @StuartAshworth9

Similar Threads

  1. Keydown event in the grid
    By pior in forum Ext: Discussion
    Replies: 1
    Last Post: 9 May 2011, 1:34 AM
  2. Plugin and keydown event
    By krzak in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 25 May 2008, 10:59 AM
  3. Keydown Event in EditorGridPanel
    By david_psh in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 2 May 2008, 1:32 AM
  4. keydown event textarea
    By italoc in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 8 Apr 2008, 3:13 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •