1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    2
    Vote Rating
    0
    Answers
    1
    Christian-miran is on a distinguished road

      0  

    Default Answered: Strange problem with pressing enterKey on Android in textarea

    Answered: Strange problem with pressing enterKey on Android in textarea


    i have a very strange problem and no solution for the following problem.<br><br>i have a form with an input and textareafield

    Code:
    
    
    Code:
    xtype: 'formpanel',
    				flex: 1,
    				style: 'border-top: 2px solid #CCCCCC;',
    				method: 'POST',
    				id: 'replyform',
    				name: 'form',
    				scrollable : {
    					direction: 'vertical',
    					directionLock: true,
    					outOfBoundRestrictFactor: 0,
    				},
    				items: [
    					{
    						xtype: 'fieldset',
    						id: 'topic_reply_title',
    						style: 'margin-bottom: 0.5em;',
    						defaults: {
    							labelWidth: '35%',
    						},
    						
    						items: [
    							{
    								xtype: 'textfield',
    								id: 'usernameField',
    								label: lang['username'],
    								name: 'name',
    							},
    							{
    								xtype: 'textfield',
    								id: 'titleField',
    								placeHolder: lang['title'],
    								name: 'titel',
    							},
    							{
    								xtype: 'fullscreentextarea',
    								maxRows: 5,
    								name: 'nachricht',
    							},
    							{
    								xtype: 'hiddenfield',
    								name: 'preview',
    								value: 0,
    							},
    							{
    								xtype: 'hiddenfield',
    								name: 'unique',
    							},
    						]
    					},
    				]


    i disabled the android overlay box with the following css Code

    Code:
    
    
    Code:
    textarea {
    	-webkit-user-modify: read-write-plaintext-only;
        -webkit-tap-highlight-color: rgba(255,255,255,0);
    }


    this works fine on my desktop @chrome<br><br>but on my mobile android device (samsung galaxy s2 android 4.0.4) appeared strange problems after pressing the "enter key"

    The soft keyboard (or virtual keyboard) disappear and the copy mode starts on random positions in this textarea

    look at this screen ...
    https://www.dropbox.com/s/l4401dyt5n...0-16-24-49.png
    thats what happen if i press enter after "gj"

    i use Sencha Touch 2.1.1 and phonegap 2.0

  2. i have solved this problem after upgrading to phonegap 2.4

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,642
    Vote Rating
    899
    Answers
    3574
    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


    This sounds like a device issue as ST won't be able to copy like that
    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.

  4. #3
    Sencha User
    Join Date
    Feb 2013
    Posts
    2
    Vote Rating
    0
    Answers
    1
    Christian-miran is on a distinguished road

      0  

    Default


    i have solved this problem after upgrading to phonegap 2.4

Thread Participants: 1