Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-2686 in a recent build.
  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    28
    Vote Rating
    2
    natb is on a distinguished road

      0  

    Default Input type fields: 'paste' event doesn't work

    Input type fields: 'paste' event doesn't work


    REQUIRED INFORMATION
    Ext version tested:
    • Sencha Touch 2.0.1
    Browser versions tested against:
    • Safari 5.1
    Description:
    • For input-type fields like e.g. Ext.field.Search 'paste' event is never fired.
    Steps to reproduce the problem:
    • Create an Ext.field.Search and subscribe to 'paste' event
    • Paste some data into the field by using pasteboard -> 'paste' event is not fired for the created component
    Test Case:
    Code:
       Ext.create('Ext.field.Search', {            listeners: {
                    'keyup': function () { console.log('key pressed'); },
                    'paste': function () { console.log('paste done'); }
                }
            });

    HELPFUL INFORMATION

    Debugging already done:
    • My quick investigation shows that this happens because Ext.event.publisher.Dom handledEvents[] doesn't include 'paste' event.
    BTW: It also would be good to have a 'cut' event supported.

    Thank you in advance,
    Regards

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,521
    Vote Rating
    814
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Until this gets fixed, here is a quick override to get the paste event working:

    Code:
    Ext.define('Override.field.Input', {
        override : 'Ext.field.Input',
    
        initElement : function() {
            this.callParent();
    
            this.input.dom.addEventListener('paste', Ext.Function.bind(this.onPaste, this));
        }
    });
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Apr 2012
    Posts
    28
    Vote Rating
    2
    natb is on a distinguished road

      0  

    Default


    Thanks a lot. Are you planning to support the 'oncut' event for input fields?

    Regards

Thread Participants: 1

Tags for this Thread