Results 1 to 3 of 3

Thread: Strange problem with pressing enterKey on Android in textarea

  1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    2
    Answers
    1
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    This sounds like a device issue as ST won't be able to copy like that
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Feb 2013
    Posts
    2
    Answers
    1
    Vote Rating
    0
      0  

    Default

    i have solved this problem after upgrading to phonegap 2.4

Posting Permissions

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