Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Enter key not working on Android 2.2?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
douve  
View profile  
 More options Aug 28 2012, 9:39 pm
From: douve <dljvan...@gmail.com>
Date: Tue, 28 Aug 2012 18:39:56 -0700 (PDT)
Local: Tues, Aug 28 2012 9:39 pm
Subject: Enter key not working on Android 2.2?

Hello,

First of all very nice program, I like it a lot!
I am trying to integrate CodeMirror in an Android application (testing on
2.2), and it seems the Enter key is not working. All other characters do
work though.
I checked the onkeypress and onkeydown methods and it seems it they do not
recieve the event/event keycode for Enter.
So for some reason it doesn't read the input, I tried attaching the
newlineAndIndent method to the Backspace and that works, so I don't think
there is a fault in the code, it just doesn't recieve the Enter event.
If someone knows how to solve this, that would be really great!

Thank you in advance for any help,

douve


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
douve  
View profile  
 More options Aug 28 2012, 9:45 pm
From: douve <dljvan...@gmail.com>
Date: Tue, 28 Aug 2012 18:45:46 -0700 (PDT)
Local: Tues, Aug 28 2012 9:45 pm
Subject: Re: Enter key not working on Android 2.2?

edit: the enter key event is however detected in other normal textareas and
input fields (with onkeypress/onkeydown), so clearly Android does send the
key event right.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Pass  
View profile  
 More options Aug 29 2012, 4:22 am
From: Matt Pass <m...@web-jedi.co.uk>
Date: Wed, 29 Aug 2012 01:22:03 -0700 (PDT)
Local: Wed, Aug 29 2012 4:22 am
Subject: Re: Enter key not working on Android 2.2?

I also found Enter doesn't do anything in CM on on Android 2.2 (tested on a
mobile).

Works fine on Android 3 (on a tablet) and Android 4 (on a mobile) if that
helps find the issue.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marijn Haverbeke  
View profile  
 More options Aug 29 2012, 4:25 am
From: Marijn Haverbeke <mari...@gmail.com>
Date: Wed, 29 Aug 2012 10:25:21 +0200
Local: Wed, Aug 29 2012 4:25 am
Subject: Re: [CodeMirror] Re: Enter key not working on Android 2.2?
This is issue #331 [1]. I can't reproduce it on my Android 2.3 phone,
so I guess it's a bug / issue in 2.2 and lower. If someone with access
to a 2.2 device could further debug it, that'd be great.

[1]: https://github.com/marijnh/CodeMirror/issues/331

Best,
Marijn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt Pass  
View profile  
 More options Aug 29 2012, 5:04 am
From: Matt Pass <m...@web-jedi.co.uk>
Date: Wed, 29 Aug 2012 02:04:15 -0700 (PDT)
Local: Wed, Aug 29 2012 5:04 am
Subject: Re: [CodeMirror] Re: Enter key not working on Android 2.2?

Yeah, sounding like 2.2 and lower has the issue.

Would've been happy to bugfix this, but I don't have my Android 2.2 phone
anymore (upgraded to 4).

Over to Douve, or anyone else with a 2.2 phone.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
douve  
View profile  
 More options Aug 29 2012, 8:17 am
From: douve <dljvan...@gmail.com>
Date: Wed, 29 Aug 2012 05:17:54 -0700 (PDT)
Local: Wed, Aug 29 2012 8:17 am
Subject: Re: Enter key not working on Android 2.2?

Hi,

Thanks for the quick responses. I would be happy to try to bugfix it but I
am not sure how to go about this properly...
I tried clearing most of the functions while still trying out the keys,
hoping for the enter keypress to be triggered, but that didn't happen, even
after I emptied most of the code. How would I properly debug this? And is
there any javascript in the code that could possibly intercept an
onkeypress or onkeydown event to be triggered?

Also there is the Android Virtual Device in the Android SDK that can
emulate version 2.2 of Android, if anyone wants to help with that.

Douve


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marijn Haverbeke  
View profile  
 More options Aug 29 2012, 8:55 am
From: Marijn Haverbeke <mari...@gmail.com>
Date: Wed, 29 Aug 2012 14:55:17 +0200
Local: Wed, Aug 29 2012 8:55 am
Subject: Re: [CodeMirror] Re: Enter key not working on Android 2.2?
Hm, if the browser is simply not firing events at all, that might be
tricky to debug. You could try removing style rules (making the hidden
textarea visible) to see if that changes anything.

In the meantime, I'll put 'install the Android SDK' on my to-do list.

Best,
Marijn


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marijn Haverbeke  
View profile  
 More options Aug 29 2012, 9:45 am
From: Marijn Haverbeke <mari...@gmail.com>
Date: Wed, 29 Aug 2012 15:45:00 +0200
Subject: Re: [CodeMirror] Re: Enter key not working on Android 2.2?
Unfortunately, in the emulator for 2.2 the enter key also works, so
that's not much of a help in reproducing this.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
douve  
View profile  
 More options Aug 29 2012, 10:57 am
From: douve <dljvan...@gmail.com>
Date: Wed, 29 Aug 2012 07:57:05 -0700 (PDT)
Local: Wed, Aug 29 2012 10:57 am
Subject: Re: Enter key not working on Android 2.2?

Hi,

Lol sorry, the android device I am using is actually *2.3.3* (API 10), for
some reason I thought it was 2.2 =/. I tried 2.3.3 on the Android Virtual
Device and the enter key does not work there also.

I also tried clear the css with only the position:absolute in the
.CodeMirror-gutter and CodeMirror pre.CodeMirror-cursor left. Every key
still works except for enter, so it seems it is a problem in the javascript.

Douve


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
douve  
View profile  
 More options Aug 30 2012, 3:32 pm
From: douve <dljvan...@gmail.com>
Date: Thu, 30 Aug 2012 12:32:34 -0700 (PDT)
Local: Thurs, Aug 30 2012 3:32 pm
Subject: Re: Enter key not working on Android 2.2?

Hi,

I somehow managed to solve the enter key problem by removing* padding: 0;*from
*var input = elt("textarea", null, null, "position: absolute; padding: 0;
width: 1px; height: 1em"); *and removing *overflow: hidden; *from *var
inputDiv = elt("div", [input], null, "overflow: hidden; position: relative;
width: 3px; height: 0px;");
*Then there appears a line under the cursor, to solve that you can set *height:
0; *in var input.

Only a new small problem arises: at the second time (and afterwards) of
clicking on a line, the cursor dissapears. It shows up again after pressing
a key.
But it's not a very big problem, atleast it is possible to edit code now!

Thanks for all help

Douve


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »