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 EXTJS-6254 in a recent build.
  1. #1
    Sencha User
    Join Date
    Feb 2009
    Posts
    7
    Vote Rating
    1
    siltronic is on a distinguished road

      1  

    Default ExtJS 4.0.2a : Can't write space in textfield inside Menu

    ExtJS 4.0.2a : Can't write space in textfield inside Menu


    REQUIRED INFORMATION

    Ext version tested:
    • Ext 4.0.2 rev a
    Browser versions tested against:
    • Chrome 14.0.835.94 beta-m
    • And many others...
    Description:
    • When we are typing 'space' char in a textfield inside a menu (e.g.grid filters), the KeyNav of the menu catch the key and the char is not writed.
    • See this post for more details : http://www.sencha.com/forum/showthre...705#post634705
    • Note that problem occure only with 'space'. Arrow Left or Right, which are used in the KeyNav, work well in the textfield...

    Steps to reproduce the problem:The result that was expected:
    • able to write 'space' char...
    The result that occurs instead:
    • no action
    Test Case: Please see "steps to reproduce the problem".

    Possible fix:
    • No a very good fix, but to fix it quickly and be able to write space, comment the spacebar action the KeyNav constructor :
    Code:
    Ext.override(Ext.menu.KeyNav, {
        constructor: function(menu) {
            var me = this;
    
    
            me.menu = menu;
            me.callParent([menu.el, {
                down: me.down,
                enter: me.enter,
                esc: me.escape,
                left: me.left,
                right: me.right,
                //space: me.enter,
                tab: me.tab,
                up: me.up
            }]);
        }
    });

    • default ext-all.css
    Operating System:
    • Win 7

  2. #2
    Ext JS Premium Member
    Join Date
    Sep 2009
    Posts
    59
    Vote Rating
    3
    wsi is on a distinguished road

      0  

    Default keyNav issues with 4.0.6

    keyNav issues with 4.0.6


    On version 4.0.6 this problem is partially resolved. A Text field that is immediately added to the menu do pickup keys such as "space". If field is contained in a container and that container is added as a menu item, the field does not pick up the "space" key.

    The work around is to wait till the menu is rendered and then disable the keyNav. I feel that Sencha should offer a menu configuration parameter that allows someone to construct a menu without keyNav.

  3. #3
    Sencha - Community Support Team edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    7
    edspencer is a jewel in the rough edspencer is a jewel in the rough edspencer is a jewel in the rough

      0  

    Default


    @wsi just to be clear, you're saying that adding a textfield item dynamically some time after the menu has been rendered results in the incorrect behavior, whereas defining the textfield at the time the menu is first create results in the correct behavior?
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  4. #4
    Sencha User
    Join Date
    May 2011
    Posts
    10
    Vote Rating
    0
    dan.everest is on a distinguished road

      0  

    Default


    Quote Originally Posted by edspencer View Post
    @wsi just to be clear, you're saying that adding a textfield item dynamically some time after the menu has been rendered results in the incorrect behavior, whereas defining the textfield at the time the menu is first create results in the correct behavior?
    Actually, what he means is doing this:
    Code:
    Ext.create('Ext.menu.Menu',{
         ...yada yada yada ...
         items: [
             {
                  xtype: 'textfield',
                 itemId: 'allowsWhiteSpace'
             },
             {
                 xtype: 'panel',
                 items: [{
                     xtype: 'textfield',
                     itemId: 'doesNotAllowWhiteSpace'
                 }]
              }
         ]
     });
    I first experienced this with a ComboBox, but while debugging it, I switched the component to a TextField to ensure my store wasn't the problem. When I got the same issue w/ the TextField, I started commenting things out until it worked and discovered the issue described by wsi. I am using ExtJs 4.0.7 on Firefox 4.0.1.

  5. #5
    Ext JS Premium Member
    Join Date
    Sep 2009
    Posts
    59
    Vote Rating
    3
    wsi is on a distinguished road

      0  

    Default


    Yes that is what I mean.

    Quote Originally Posted by dan.everest View Post
    Actually, what he means is doing this:
    Code:
    Ext.create('Ext.menu.Menu',{
         ...yada yada yada ...
         items: [
             {
                  xtype: 'textfield',
                 itemId: 'allowsWhiteSpace'
             },
             {
                 xtype: 'panel',
                 items: [{
                     xtype: 'textfield',
                     itemId: 'doesNotAllowWhiteSpace'
                 }]
              }
         ]
     });
    I first experienced this with a ComboBox, but while debugging it, I switched the component to a TextField to ensure my store wasn't the problem. When I got the same issue w/ the TextField, I started commenting things out until it worked and discovered the issue described by wsi. I am using ExtJs 4.0.7 on Firefox 4.0.1.

  6. #6
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    200
    Vote Rating
    7
    Qarea is on a distinguished road

      0  

    Default


    This issue still reproduced int 4.0.7 and 4.1

  7. #7
    Ext JS Premium Member
    Join Date
    Nov 2011
    Posts
    200
    Vote Rating
    7
    Qarea is on a distinguished road

      0  

    Default


    Found a dirty fix for this bug.

    Code:
    enableKeyEvents: true,
    listeners: {
        keydown: function (field, e) {
        var input, selStart, selEnd, value;
    
        if (e.getCharCode() === e.SPACE) {
            input = field.getEl().query('input')[0];
            selStart = input.selectionStart;
            selEnd = input.selectionEnd;
            value = field.getValue();
            value = value.substring(0, selStart) + ' ' + value.substring(selEnd, value.length);
            field.setValue(value);
            input.selectionStart = selStart + 1;
            input.selectionEnd = selStart + 1;
        }
    }

  8. #8
    Sencha User
    Join Date
    May 2009
    Posts
    8
    Vote Rating
    0
    gjuggler is on a distinguished road

      0  

    Default


    I'm having the same problem with Ext 4.1; I can't see how this could *not* be considered a bug.

    The Override fix worked for me in Ext 4.0.7 but not in 4.1 now that the override syntax / behavior has changed; has anyone got that fix working in 4.1?

    For now I'm using Qarea's fix -- it's ugly and hacky and I hope I can get rid of it ASAP, but it fixes the problem.

  9. #9
    Sencha User
    Join Date
    Jan 2008
    Posts
    38
    Vote Rating
    2
    thething is on a distinguished road

      0  

    Default


    I actually ran into the same problem and solved it with a workaround to disable the keyNav in the show event of the menu:

    Code:
    "show": function(menu) {                   
        menu.keyNav.disable();
    },
    "hide": function(menu) {
        menu.keyNav.enable();
    }
    
    But pressing enter still doesn't insert a line break, does anyone know this problem and has a workaround in mind? (or did i miss some configuration option!?)

    Thx for your answer

    Edit: OK, this was my fault - i have a central ENTER event for submitting a form, they don't like each other it seems

  10. #10
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    474
    Vote Rating
    1
    johnnywengluu is on a distinguished road

      0  

    Default


    I'm having the same issue.

    Please fix this so that I can have a toolbar with textfield in a menu!