CN101655742A - Key inputting method for mobile communication terminal - Google Patents

Key inputting method for mobile communication terminal Download PDF

Info

Publication number
CN101655742A
CN101655742A CN200910189893A CN200910189893A CN101655742A CN 101655742 A CN101655742 A CN 101655742A CN 200910189893 A CN200910189893 A CN 200910189893A CN 200910189893 A CN200910189893 A CN 200910189893A CN 101655742 A CN101655742 A CN 101655742A
Authority
CN
China
Prior art keywords
key
character
java
enumerate
lowercase
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN200910189893A
Other languages
Chinese (zh)
Other versions
CN101655742B (en
Inventor
杨彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN2009101898938A priority Critical patent/CN101655742B/en
Publication of CN101655742A publication Critical patent/CN101655742A/en
Application granted granted Critical
Publication of CN101655742B publication Critical patent/CN101655742B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Input From Keyboards Or The Like (AREA)

Abstract

The invention is suitable for the technical field of mobile communication terminals, and provides a key inputting method of a mobile communication terminal. The method comprises the following steps: a. inquiring an enumerating key value of a triggered key, transmitting the enumerating key value of the triggered key to a Java program; b. judging whether an upper row of numbers/characters of the triggered key is needed to be input or not by the Java program, if soothe upper row of numbers/characteristics of the triggered key is needed to be input by the Java program, turning to a step c, and otherwise, turning to a step d; c. inquiring the upper row of numbers/characters corresponding to the Java enumerating key value to obtain the numbers/characters corresponding to the Java enumerating value; and d. inquiring lower-case characters corresponding to the Java enumerating key value to obtain the lower-case characters corresponding to the Java enumerating key value. The technical scheme ensures that the mobile communication terminal can directly input and display a full keyboard and irregular keyboard characters in the Java program, keep the independence of the Java program and easily carry out a multilingual expanding at the same time so that the experience of a user is obviously improved.

Description

Key inputting method for mobile communication terminal
Technical field
The invention belongs to the mobile communication terminal technical field, relate in particular to a kind of key inputting method for mobile communication terminal.
Background technology
Existing mobile communication terminal, as mobile phone, its function that can realize is more and more, and the keyboard of mobile communication terminal is as the implementation tool of man-machine interaction, and its importance is self-evident.
Mobile communication terminal is on the basis of traditional 12 key products, and various full keyboards and irregular keyboard product continue to bring out, to make things convenient for user's input character more quickly.In the local loading routine of mobile communication terminal, platform (the general designation of the operating system of product and button handling procedure, down with) can the writing function bonded state and input language setting and it is presented on the interface with the prompting user, guarantee that the input of user's expection conforms to actual the input.And for java applet, owing to lack standard interface, the button value of full keyboard and irregular keyboard itself is difficult to be transmitted, and realize in java applet that character directly imports the difficult point of demonstration and just be this.Existing mobile communication terminal, for the java applet in the product, owing to lack standard and technical scheme that full keyboard and irregular keypad character directly transmit, can only switch the local loading routine that calls product through a plurality of interfaces and realize the character input, particularly inconvenience during use.
Therefore, need a kind of technical scheme, to solve the above problems.
Summary of the invention
The object of the present invention is to provide a kind of key inputting method for mobile communication terminal, be intended to solve the problem that full keyboard or irregular keypad character are directly imported demonstration.
The present invention is achieved in that a kind of key inputting method for mobile communication terminal, and described method comprises:
The be triggered key assignments of enumerating of button of a, inquiry is delivered to java applet with the key assignments of enumerating of the described button that is triggered;
Do b, described java applet judge whether to import the row's of going up numeral/character of the described button that is triggered? if change step c, otherwise change steps d;
C, the described Java of inquiry enumerate the row's of going up numeral/symbol that key-value pair is answered, and obtain described Java and enumerate numeral/symbol that key-value pair is answered.
D, the described Java of inquiry enumerate the lowercase character that key-value pair is answered, and obtain described Java and enumerate the lowercase character that key-value pair is answered.
More specifically, wherein step a specifically comprises:
A1, inquiry button key assignments and Java enumerate key assignments mapping relations table, and the Java that obtains the described button that is triggered enumerates key assignments, the Java of the described button that is triggered is enumerated key assignments be delivered to described java applet.
More specifically, wherein step b specifically comprises:
B1, described java applet are judged the state of Fn key/shift key, determine whether to import the row's of going up numeral/character of the described button that is triggered according to judged result? if change step c, otherwise change steps d.
More specifically, wherein step c specifically comprises:
C1, inquiry Java enumerate the mapping relations table of key assignments and last row's numeral/symbol, obtain described Java and enumerate the row's of going up numeral/symbol that key-value pair is answered, and are upward arranged numeral/symbol as the character that should show with what obtain.
More specifically, wherein steps d specifically comprises:
D1, described java applet are judged current input language setting, and the Java of inquiry current language correspondence enumerates the mapping relations table of key assignments and lowercase character, obtains described Java and enumerates the lowercase character that key-value pair is answered.
More specifically, wherein steps d 1 specifically comprises:
Do you judge that described Java enumerates the lowercase character that key-value pair answers and has variant? if, the Java of inquiry current language correspondence enumerates the mapping relations table of key assignments and lowercase character, obtain described Java and enumerate the lowercase character variant that key-value pair is answered, enumerate the lowercase character that key-value pair is answered otherwise obtain described Java.
More specifically, wherein also comprise after the steps d:
Described java applet is judged the Caps bonded state, determine whether import upper case character according to judged result, in this way the lowercase character that is obtained is converted to corresponding upper case character, with the upper case character changed as the character that should show, otherwise with described lowercase character as the character that should show.
More specifically, wherein also comprise after the steps d 1:
Described java applet is judged the Caps bonded state, determine whether import upper case character according to judged result, in this way the lowercase character variant that is obtained is converted to corresponding upper case character, with the upper case character changed as the character that should show, otherwise with described lowercase character as the character that should show.
The present invention overcomes the deficiencies in the prior art, when the button on mobile communication terminal full keyboard or the irregular keyboard is triggered, the platform of mobile communication terminal is ignored its current input state, the key assignments of the button that is triggered is converted to and be triggered button one to one Java enumerate key assignments, be delivered to java applet, carry out the control of input state then in java applet inside, search this Java and enumerate the key assignments corresponding characters.Technical scheme provided by the invention makes mobile communication terminal can directly import the technical scheme that shows full keyboard and irregular keypad character in java applet, and when keeping java applet independence, be easy to carry out multilingual expansion, thereby significantly improve user experience, waiting for the MSN chat needs the java applet advantage of frequent input character particularly evident.
Description of drawings
Fig. 1 is an embodiment of the invention process flow diagram.
Embodiment
Technical scheme provided by the invention is: when the button on mobile communication terminal full keyboard or the irregular keyboard is triggered, the platform of mobile communication terminal is ignored its current input state, the key assignments of the button that is triggered is converted to and be triggered button one to one Java enumerate key assignments, be delivered to java applet, carry out the control of input state then in java applet inside, search this Java and enumerate the key assignments corresponding characters.
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
On mobile communication terminal, intensify more for making product, a key is many with being very common situation, and the keyboard of mobile communication terminal can be divided into two types usually:
1) enter key: same enter key can be distinguished input digit/symbol/upper case character/lowercase character or the like under different situations;
2) function key: the concrete input content of control enter key, function key commonly used has (concrete function key definition and control law depend on keyboard Designing):
A) Fn key/shift key: the input of control enter key is gone up row's numeral/symbol or (is for example set up type symbol down, by the row of going up of expression input next time numeral/symbol, press twice expression and import the row's of going up numeral/symbol continuously, press set up type under three expression inputs symbol, so circulation)
B) Caps key: control input upper case character or lowercase character (for example,, press twice expression and import upper case character " ABC " continuously, press expression input lowercase character " abc " three times, so circulation) by the upper case character " Abc " of expression input next time
In addition, the input language setting also can be controlled the character of enter key input, and there is variant in some character of some language, needs further to judge that the input behavior with which character of decision input (for example: the corresponding E/ of E key
Figure G2009101898938D00041
), input language can be provided with by menu item usually.
Process flow diagram of the present invention specifically comprises following step as shown in Figure 1:
1, the user triggers the button on the mobile communication terminal;
2, the platform of mobile communication terminal is ignored its current input state, inquires about the be triggered key assignments of button and the mapping relations table that Java enumerates key assignments, button value is converted to corresponding Java enumerates key assignments, is delivered to java applet then;
Wherein, the Java of each enter key correspondence enumerates key assignments and can directly adopt English lower case unicode sign indicating number:
typedef?enum{
J2ME_KEY_A=‘a’,
J2ME_KEY_B=‘b’,
...
J2ME_KEY_Z=‘z’,
...
J2ME_KEY_Fn=-34,
J2ME_KEY_Shift=J2ME_KEY_Fn,
...
J2ME_KEY_Caps=-37,
...
}KeyType;
The mapping table that button value and Java enumerate key assignments is as shown in Table 1:
Physical button Java enumerates key assignments Push-button type
??A ??a(U+0061) Enter key
??B ??b(U+0062) Enter key
??C ??c(U+0063) Enter key
??D ??d(U+0064) Enter key
??E ??e(U+0065) Enter key
??F ??f(U+0066) Enter key
??G ??g(U+0067) Enter key
??H ??h(U+0068) Enter key
??I ??i(U+0069) Enter key
??J ??j(U+006a) Enter key
??K ??k(U+006b) Enter key
??L ??l(U+006c) Enter key
??M ??m(U+006d) Enter key
??N ??n(U+006e) Enter key
??O ??o(U+006f) Enter key
??P ??p(U+0070) Enter key
??Q ??q(U+0071) Enter key
??R ??r(U+0072) Enter key
??S ??s(U+0073) Enter key
??T ??t(U+0074) Enter key
??U ??u(U+0075) Enter key
??V ??v(U+0076) Enter key
??W ??w(U+0077) Enter key
??X ??x(U+0078) Enter key
??Y ??y(U+0079) Enter key
??Z ??z(U+007a) Enter key
??Soft1 ??-6 Function key
??Soft2 ??-7 Function key
??Up ??-1 Function key
??Down ??-2 Function key
??Left ??-3 Function key
??Right ??-4 Function key
??Del ??-8 Function key
??Select ??-5 Function key
??Mail ??-23 Function key
??Camera ??-24 Function key
??Fn/Shift ??-34 Function key
??Caps ??-37 Function key
??SYM?Lg ??-39 Function key
??Ctrl ??-38 Function key
??Return ??-41 Function key
Table one
3, java applet is judged Fn key/shift key state, confirm import row's numeral/symbol according to judged result? in this way, change step 4, otherwise change step 5;
4, inquiry Java enumerates the mapping table of key assignments and last row's numeral/symbol, obtains the input value that show (on arrange numeral/symbol)
The mapping table that Java enumerates key assignments and last row's numeral/symbol writes in the jad file of java applet with text mode according to following form, thereby is convenient to maintenance and expansion:
Formal definition:
The mapping table sign of numeral/symbol: Java enumerates key assignments 1=numeral/symbol 1; Java enumerates key assignments 2=numeral/symbol 2...
Example:
Private-Key-Symbols:q=#?w=1?e=2?r=3?t=(y=)u=_?i=_?o=+?p=@?a=*s=4?d=5?f=6?g=/?h=:j=;k=’?l=”?z=7?x=8?c=9?v=??b=!?n=,?m=.
5, java applet is judged current input language setting, and the Java that inquires about current input language correspondence enumerates the mapping table of key assignments and lowercase character, judges whether this lowercase character exists variant, then changes step 6 in this way; As otherwise change step 7;
The mapping table that Java enumerates key assignments and various input language lowercase characters writes in the jad file of java applet with text mode according to following form, thereby is convenient to maintenance and expansion:
Formal definition:
The mapping table of certain input language lowercase character sign: Java enumerate key assignments 1=lowercase character 1 lowercase character 1 variant 1 (if any) lowercase character 1 variant 2 (if any) ... Java enumerate key assignments 2=lowercase character 2 lowercase character 2 variant 1 (if any) lowercase character 2 variant 2 (if any) ...
Example:
Private-Key-English:q=q?w=w?e=e?r=r?t=t?y=y?u=u?i=i?o=o?p=p?a=a?s=sd=d?f=f?g=g?h=h?j=j?k=k?l=l?z=z?x=x?c=c?v=v?b=b?n=n?m=m
Private-Key-French:q=q?w=w
Figure G2009101898938D00071
r=r?t=t?y=y
Figure G2009101898938D00073
Figure G2009101898938D00074
p=p
Figure G2009101898938D00075
s=s?d=d?f=f?g=g?h=h?j=j?k=k?l=l?z=z?x=x
Figure G2009101898938D00076
v=v?b=b?n=nm=m
6, enumerate key assignments according to Java and select to be triggered the corresponding lowercase character variant of button, change step 8 with corresponding lowercase character mapping table;
Specifically, java applet starts timer, if before timer expiry, receive the same key incident that platform is sent, then get the next variant of this character, repeat this process then, the selection that promptly circulates between this button corresponding characters and variant thereof up to timer expiry, is confirmed as the last lowercase character variant of selecting before the timer expiry lowercase character variant of the button correspondence that is triggered;
7, enumerate key assignments according to Java and select to be triggered the corresponding lowercase character of button, change step 8 with corresponding lowercase character mapping table;
8, java applet is judged the Caps bonded state, determines whether import upper case character according to judged result, then changes step 9 in this way, otherwise changes step 10;
9, the lowercase character variant that obtains of lowercase character that step 7 is obtained or step 6 is converted to corresponding upper case character, as the input value that should show (upper case character);
10, the lowercase character variant that obtains of lowercase character that step 7 is obtained or step 6 is as the input value that should show.
If the user need be switched Caps bonded state or Fn key/shift key state, platform can be enumerated the Java of this function key correspondence key assignments and send java applet to, as Caps key key assignments-37, Fn key/shift key key assignments-34, then by the state (be pressed several times) of java applet from this function key of line item, and the user is given in performance on the java applet interface.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1, a kind of key inputting method for mobile communication terminal, described method comprises:
The be triggered key assignments of enumerating of button of a, inquiry is delivered to java applet with the key assignments of enumerating of the described button that is triggered;
Do b, described java applet judge whether to import the row's of going up numeral/character of the described button that is triggered? if change step c, otherwise change steps d;
C, the described Java of inquiry enumerate the row's of going up numeral/symbol that key-value pair is answered, and obtain described Java and enumerate numeral/symbol that key-value pair is answered.
D, the described Java of inquiry enumerate the lowercase character that key-value pair is answered, and obtain described Java and enumerate the lowercase character that key-value pair is answered.
2, method according to claim 1 is characterized in that, wherein step a specifically comprises:
A1, inquiry button key assignments and Java enumerate key assignments mapping relations table, and the Java that obtains the described button that is triggered enumerates key assignments, the Java of the described button that is triggered is enumerated key assignments be delivered to described java applet.
3, method according to claim 1 is characterized in that, wherein step b specifically comprises:
B1, described java applet are judged the state of Fn key/shift key, determine whether to import the row's of going up numeral/character of the described button that is triggered according to judged result? if change step c, otherwise change steps d.
4, method according to claim 1 is characterized in that, wherein step c specifically comprises:
C1, inquiry Java enumerate the mapping relations table of key assignments and last row's numeral/symbol, obtain described Java and enumerate the row's of going up numeral/symbol that key-value pair is answered, and are upward arranged numeral/symbol as the character that should show with what obtain.
5, method according to claim 1 is characterized in that, wherein steps d specifically comprises:
D1, described java applet are judged current input language setting, and the Java of inquiry current language correspondence enumerates the mapping relations table of key assignments and lowercase character, obtains described Java and enumerates the lowercase character that key-value pair is answered.
6, method according to claim 1 is characterized in that, wherein steps d 1 specifically comprises:
Do you judge that described Java enumerates the lowercase character that key-value pair answers and has variant? if, the Java of inquiry current language correspondence enumerates the mapping relations table of key assignments and lowercase character, obtain described Java and enumerate the lowercase character variant that key-value pair is answered, enumerate the lowercase character that key-value pair is answered otherwise obtain described Java.
7, method according to claim 5 is characterized in that, wherein also comprises after the steps d:
Described java applet is judged the Caps bonded state, determine whether import upper case character according to judged result, in this way the lowercase character that is obtained is converted to corresponding upper case character, with the upper case character changed as the character that should show, otherwise with described lowercase character as the character that should show.
8, method according to claim 6 is characterized in that, wherein also comprises after the steps d 1:
Described java applet is judged the Caps bonded state, determine whether import upper case character according to judged result, in this way the lowercase character variant that is obtained is converted to corresponding upper case character, with the upper case character changed as the character that should show, otherwise with described lowercase character as the character that should show.
CN2009101898938A 2009-09-04 2009-09-04 Key inputting method for mobile communication terminal Expired - Fee Related CN101655742B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101898938A CN101655742B (en) 2009-09-04 2009-09-04 Key inputting method for mobile communication terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101898938A CN101655742B (en) 2009-09-04 2009-09-04 Key inputting method for mobile communication terminal

Publications (2)

Publication Number Publication Date
CN101655742A true CN101655742A (en) 2010-02-24
CN101655742B CN101655742B (en) 2012-03-28

Family

ID=41710049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101898938A Expired - Fee Related CN101655742B (en) 2009-09-04 2009-09-04 Key inputting method for mobile communication terminal

Country Status (1)

Country Link
CN (1) CN101655742B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012163216A1 (en) * 2011-05-30 2012-12-06 惠州Tcl移动通信有限公司 Method and apparatus for controlling input of mobile terminal for java program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012163216A1 (en) * 2011-05-30 2012-12-06 惠州Tcl移动通信有限公司 Method and apparatus for controlling input of mobile terminal for java program

Also Published As

Publication number Publication date
CN101655742B (en) 2012-03-28

Similar Documents

Publication Publication Date Title
US7949513B2 (en) Language module and method for use with text processing devices
CN101398717B (en) Display variable keyboard and input method
US7320111B2 (en) Method for assigning large sets of characters in different modes to keys of a number keypad for low keypress-data-entry ratio
EP1901534B1 (en) Method of managing a language information for a text input and method of inputting a text and a mobile terminal
KR20120002580A (en) Mobile communications device user interface
TWI529600B (en) Input apparatus, input method, and associated computer-readable medium
CN102710854A (en) Method and mobile terminal for fast matching dialing of Android system
CN102096488A (en) Multi-contact input method and device based on touch screen
CN101286096A (en) Digit, letter and punctuation and input mode direct switching method
CN101625622B (en) Method and device for switching mobile terminal input method
JP2007514363A (en) Character / number input device for communication terminal and input method thereof
EP1282031A2 (en) A method of entering characters into a text string and a text-editing terminal using the method
KR101240088B1 (en) Display apparatus and display method thereof
CN101963879A (en) Touch screen soft keyboard
CN105739781A (en) Method and system for quickly and accurately positioning character cursor through pressure touch technology
CN104618781A (en) Method and device for inputting characters on television terminal
US20050100147A1 (en) Text messaging without a keyboard
KR20140080788A (en) Message input device of mobile terminal
CN102902751A (en) Webpage input method and device in mobile terminal and mobile terminal
CN101655742B (en) Key inputting method for mobile communication terminal
CN102999639B (en) A kind of lookup method based on speech recognition character index and system
CN101261544A (en) Character and input mode direct switching method
CN101241399B (en) Simple text input method and input device using the method
CN102402304A (en) Character input method
JP4602180B2 (en) Communication terminal device and communication program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120328