I only partially agree with that. In this case I think the person who wrote the SMS app wanted it to work in a certain way, and did the most expedient thing, but still allowed a hard keyboard to enter the newline using the shift method.
That's fine I guess and I can't really fault the developer (who of us thinks of every angle?) but it also makes things inconsistent across apps. Essentially I'm saying that the app can tell me what the field is used for, but if a particular keyboard implementation is designed to work with that input in a certain way, then it needs to be allowed to (kind of the point of an IM imo) so that it works consistently across the system. Now really this is a relative problem. People writing a keyboard want to be able to do special things and people writing an app want a keyboard to work the same way every time. So I think the is a happy median or set of rules when modifying the interaction between the two. In this case the app told the ime "I'm supposed to be a short message"... which is a fine... Only now the keyboard decides that for short messages it will allow the user to enter newlines... Except that the app now made assumptions about what the ime wanted that were not correct (this first came up because the impl on another made opposite assumptions). I think. What is needed is a method for the app to tell the keyboard it has certain actions it would like to happen for a key. Now I noticed something I the ime API that might actually be for that, but I haven't had time to investigate yet. Btw- ime's do get hard keyboard events and can swallow them if they like or not. - brill On Dec 10, 12:27 pm, John <[email protected]> wrote: > In my opinion the problem is the difficulty in programming for the > soft keyboard. What developers would like, is to be able to program > the soft keyboard as a nearly drop-in replacement for a hardware > keyboard. Instead, the handling for the soft keyboard is quite > different than a hardware keyboard. You can't capture keypresses like > you would expect. > > I'm guessing that the differences in the base apps are not > intentional, but simply the result of people not understanding the > complicated system that is the IME. And that's not a problem with the > app developers. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

