CN102707812A - Time input method - Google Patents
Time input method Download PDFInfo
- Publication number
- CN102707812A CN102707812A CN2012101512135A CN201210151213A CN102707812A CN 102707812 A CN102707812 A CN 102707812A CN 2012101512135 A CN2012101512135 A CN 2012101512135A CN 201210151213 A CN201210151213 A CN 201210151213A CN 102707812 A CN102707812 A CN 102707812A
- Authority
- CN
- China
- Prior art keywords
- input
- value
- cursor
- character
- input value
- 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.)
- Pending
Links
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
The invention provides a time input method. The time input method comprises the following steps: step one: setting the initial input value of a control piece to be '00:00', step two: inputting the input value, step three: judging a key value mask of the input value, permitting the input if the key value mask is between 48 and 57 or between 95 and 105, and otherwise, forbidding the input; step four: detecting a character at the present input position of a cursor: enabling the cursor to automatically skip to the next input position if the character at the input position is ':'; and otherwise, replacing the character at the present input position with an input value; and step 5: returning to the step 2, and accomplishing the input after the cursor skips to the last input position. The time input method has the advantages of simplicity, convenience to use, smoothness in operation and high input efficiency.
Description
Technical field
The present invention relates to a kind of input method that is exclusively used in the time, specifically, related to a kind of time-division input method.
Background technology
At present, more convenient in the selection on date based on the time typing of B/S structure, still, to hour: the input of minute this form, import after need carrying out drop-down selection or using mouse to switch cursor; When selecting, there were 24 hours in one day, there are 60 minutes after each hour, so the efficient of selecting is very low; And input error appears in direct input time easily, and can only use after the keyboard input hour; Mouse switches cursor in minute input frame; Re-use keyboard input minute, mouse switches frequently with keyboard, for the input that a plurality of time formats are arranged; Operate more loaded down with trivial detailsly, efficient is lower.
When using jquery to carry out the exploitation of web project, it is more convenient in the selection for the yyyy-MM-dd date format that the programmer feels existing date control deeply, but for hh:mm such hour: minute input operation more loaded down with trivial details, inefficiency.
In order to solve the problem of above existence, people are seeking a kind of desirable technical solution always.
Summary of the invention
The objective of the invention is deficiency, thereby the time-division that a kind of method is simple, easy to use, operation is smooth and easy and input efficiency is high input method is provided to prior art.
To achieve these goals, the technical scheme that the present invention adopted is: a kind of time-division input method, and it may further comprise the steps:
Step 1, the input initial value that control is set are " 00:00 ";
Step 2, input input value;
Step 3, judge for the key assignments mask of input value, if the key assignments mask in 48 to 57 or 96 to 105 interval, then allows input, otherwise, then do not allow input;
Step 4, detect the character of the current input position of cursor, if the character of this input position is ": ", then cursor jumps to next input position automatically, otherwise, input value is replaced the character of the current input position of cursor;
Step 5, return step 2, jump to last input position and accomplish input until cursor.
Based on above-mentioned; In step 4; Before the character of the current input position of input value replacement cursor, judge whether input value is correct input value: the input value of first input position is that the input value of 0,1 or 2, the second input position is 0,1,2,3 or 4; The input value of the 4th input position is that the input value of 0,1,2,3,4 or 5, the five input positions is Any Digits; If correct input value, then with this character of the current input position of input value replacement cursor accurately, otherwise, then do not allow input.
The relative prior art of the present invention has outstanding substantive distinguishing features and marked improvement; Specifically, the invention solves the input hour: the problem that minute format efficiency is low, realized the full keyboard operation; Do not need the mouse control cursor; And support continuous input, the especially user of a plurality of times to import the numeral that does not meet time rule, can eject friendly miscue.
Embodiment
Through embodiment, technical scheme of the present invention is done further detailed description below.
A kind of time-division input method, it may further comprise the steps:
Step 1, the input initial value that control is set are " 00:00 ", and maximum can only be imported 5 bit digital;
Keyboard incoming event and the value change events of step 2, interception webpage control input, the input input value;
Step 3, in the keyboard incoming event, judge for the key assignments mask of input value, if the key assignments mask in 48 to 57 or 96 to 105 interval, then allows input, otherwise, then do not allow input;
Wherein, 48 to 57 and 96 to 105 is respectively the keyboard digital mask value of keyboard and numeric keypad;
Step 4, detect the character of the current input position of cursor, if the character of this input position is ": ", then cursor jumps to next input position automatically, otherwise, input value is replaced the character of the current input position of cursor;
Before the character of the current input position of input value replacement cursor; Judge whether input value is correct input value: the input value of first input position is 0,1 or 2; The input value of second input position is 0,1,2,3 or 4; The input value of the 4th input position is that the input value of 0,1,2,3,4 or 5, the five input positions is Any Digits; If correct input value, then with this character of the current input position of input value replacement cursor accurately, otherwise, then do not allow input;
Step 5, return step 2, jump to last input position and accomplish input until cursor; At this moment, if the control object that needs redirect is arranged, then let the control of redirect obtain focus and with cursor positioning to the first.
The inventive method is used javacript and web DOM technology; Make common input input control in the B/S structure become special-purpose input hour: the dedicated controls of minute form, direct input digit, without any need for mouse action; Under each version of main flow browsers such as ie, firefox, chrome; Can realize that all a plurality of controls import continuously, improve input speed greatly, improve operating efficiency.
The demand that realizes the inventive method is following: input must be numeral; The keypad numeral in keyboard digital and the keyboard is supported in input, increases the agility of input; Directly input digit still must form the such form of hh:mm; Support the continuous input of a plurality of forms to switch, raise the efficiency with the operation of avoiding mouse and keyboard; The function of automatic debugging and prompting; The supporting interface expansion.
The inventive method has been tackled the keyboard incoming event, and input time, and input value is replaced cursor place character automatically; Running into ": " does not then replace; Automatically redirect for the input of start time and such form of concluding time, directly uses 8 numerals of keypad numerical key input to get final product; Swift to operate smooth and easy, solve original date control and selected and imported cumbersome shortcoming.
The present invention is applicable to all B/S structure programs, and is simple and easy to use, is easy to dispose, and is applicable to all main flow browsers such as ie series, firefox, chrome, simplified the loading routine of the time period that occurs through regular meeting in the B/S system greatly; Through test, disposable input begins time-division and the operation that finishes the time-division for needs, uses usual way, generally about 10 seconds, just can import to finish, and use the inventive method, then only needs to accomplish input 1 second.
Should be noted that at last: above embodiment is only in order to technical scheme of the present invention to be described but not to its restriction; Although with reference to preferred embodiment the present invention has been carried out detailed explanation, the those of ordinary skill in affiliated field is to be understood that: still can specific embodiments of the invention make amendment or the part technical characterictic is equal to replacement; And not breaking away from the spirit of technical scheme of the present invention, it all should be encompassed in the middle of the technical scheme scope that the present invention asks for protection.
Claims (2)
1. a time-division input method is characterized in that, this method may further comprise the steps: step 1, the input initial value that control is set are " 00:00 "; Step 2, input input value; Step 3, judge for the key assignments mask of input value, if the key assignments mask in 48 to 57 or 96 to 105 interval, then allows input, otherwise, then do not allow input; Step 4, detect the character of the current input position of cursor, if the character of this input position is ": ", then cursor jumps to next input position automatically, otherwise, input value is replaced the character of the current input position of cursor; Step 5, return step 2, jump to last input position and accomplish input until cursor.
2. time-division input method according to claim 1; It is characterized in that: in step 4; Before the character of the current input position of input value replacement cursor, judge whether input value is correct input value: the input value of first input position is that the input value of 0,1 or 2, the second input position is 0,1,2,3 or 4; The input value of the 4th input position is that the input value of 0,1,2,3,4 or 5, the five input positions is Any Digits; If correct input value, then with this character of the current input position of input value replacement cursor accurately, otherwise, then do not allow input.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012101512135A CN102707812A (en) | 2012-05-16 | 2012-05-16 | Time input method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012101512135A CN102707812A (en) | 2012-05-16 | 2012-05-16 | Time input method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102707812A true CN102707812A (en) | 2012-10-03 |
Family
ID=46900687
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012101512135A Pending CN102707812A (en) | 2012-05-16 | 2012-05-16 | Time input method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102707812A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107995966A (en) * | 2016-12-28 | 2018-05-04 | 深圳配天智能技术研究院有限公司 | A kind of data entry device, device and equipment |
CN111949142A (en) * | 2020-08-10 | 2020-11-17 | 智业软件股份有限公司 | Time input method, terminal equipment and storage medium |
-
2012
- 2012-05-16 CN CN2012101512135A patent/CN102707812A/en active Pending
Non-Patent Citations (2)
Title |
---|
包子蜀黍的博客: "《http://zheyiw.iteye.com/blog/monthblog/2010-04 》", 19 April 2010 * |
编程论坛: "《http://bbs.bccn.net/thread-350526-1-1.html》", 19 September 2011 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107995966A (en) * | 2016-12-28 | 2018-05-04 | 深圳配天智能技术研究院有限公司 | A kind of data entry device, device and equipment |
WO2018119760A1 (en) * | 2016-12-28 | 2018-07-05 | 深圳配天智能技术研究院有限公司 | Data input method, apparatus and device |
CN111949142A (en) * | 2020-08-10 | 2020-11-17 | 智业软件股份有限公司 | Time input method, terminal equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101261545B (en) | Terminal equipment input method and device | |
JP5067680B2 (en) | Chinese electronic device input method | |
WO2009025367A1 (en) | Input device | |
CN101853085A (en) | Method for improving Chinese pinyin input mode | |
CN101976173A (en) | Multi-language hybrid input method used on embedded touch screen virtual keyboard | |
CN103037106A (en) | Method and device of mobile phone input keyboard switch | |
CN101369235A (en) | Program converting device and compiling program | |
CN103517115A (en) | Method and system for adding focus frame in widget views and smart television | |
CN102707812A (en) | Time input method | |
FR3090632B1 (en) | Process for the production of butadiene from ethanol with optimized in situ regeneration of the catalyst of the second reaction step | |
US6554191B2 (en) | Data entry method for portable communications device | |
CN102893588A (en) | Nine-key chinese input method | |
CN103946772A (en) | Method for inputting chinese using a touch screen having an intonation selection function | |
CN102109960A (en) | Fast Chinese-character pinyin input method based on touch sensing device as well as system for realizing same | |
Semjen et al. | On controlling force and time in rhythmic movement sequences: the effect of stress location. | |
CN101853077A (en) | Compact vowel preference keyboard layout | |
CN104317420A (en) | Fast nasal final mobile phone Chinese character input method | |
CN103486694B (en) | Universal air conditioner remote controller | |
CN103365905B (en) | The dictionary data antidote and device of input method | |
CN106055125B (en) | Character mixing input method and system | |
CN100354804C (en) | Intelligent cell-phone Mongol inputting method | |
CN101266523A (en) | Chinese characters rapid selection method for Chinese input method | |
CN102520924A (en) | Menu management method and menu management system applied to measuring instruments | |
CN106406564A (en) | Input method software used in the Android system | |
KR101130894B1 (en) | Korean Alphabets Keyboards for QWERTY Keyboards of Smart-Phones Including Convenient Tapping Method of Vowel Keys |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20121003 |