The present invention relates to a display device and a display control program, and in particular to a technique to display a software keyboard on a screen of a display unit.
Existing display devices are configured to display a software keyboard on a screen of a display unit, instead of a hardware keyboard. A touch operation on a key of the software keyboard is detected through a touch panel provided on the screen of the display unit, and the character, symbol, or code associated with the touched key is inputted. The software keyboard is displayed or undisplayed depending on, for example, whether an input field in the screen of the display unit is focused.
In addition, an image processing device according to Patent Literature (PTL) 1 is configured to restrict the display of the software keyboard, under a specific condition that requires the software keyboard to remain undisplayed, because frequent alternation of the displayed state and the undisplayed state of the software keyboard is troublesome. For example, when a hardware keyboard is connected to the image processing device, the display of the software keyboard is restricted.
Under the mentioned arrangement, that the software keyboard is displayed or set undisplayed depending on whether the input field in the screen of the display unit is focused, the displayed state and the undisplayed state of the software keyboard are frequently alternated. In addition, the arrangement according to PTL 1 merely restricts the display of the software keyboard, when the hardware keyboard is connected to the apparatus, and is not designed to properly switch between the displayed and undisplayed states of the software keyboard, during the use thereof, from the viewpoint of improving the user friendliness of the device.
The present invention has been accomplished in view of the foregoing situation, and provides a technique to set the software keyboard displayed or undisplayed, at a proper timing so as to improve the user friendliness of the device.
In an aspect, the present invention provides a display device including a display unit, a controller that displays an input field and a software keyboard on a screen of the display unit, an input device that receives an input of a character string including characters, symbols, or codes to the input field, according to an operation performed by a user on the software keyboard, and a decider that decides whether the character string inputted to the input field through the input device satisfies a predetermined condition. The controller sets the software keyboard undisplayed in the screen of the display unit, when the decider decides that the predetermined condition is satisfied.
In another aspect, the present invention provides a display control program configured to cause a computer to act as a controller that displays an input field and a software keyboard on a screen of a display unit, an input device that receives an input of a character string including characters, symbols, or codes to the input field, according to an operation performed by a user on the software keyboard, and a decider that decides whether the character string inputted to the input field through the input device satisfies a predetermined condition, and to cause the computer to cause the controller to set the software keyboard undisplayed in the screen of the display unit, when the decider decides that the predetermined condition is satisfied.
The arrangement according to the present invention enables the software keyboard to be displayed or undisplayed, at a proper timing so as to improve the user friendliness of the device.
Hereafter, an embodiment of the present invention will be described, with reference to the drawings.
The mobile terminal device 10 according to this embodiment is, for example, a smartphone or a mobile computer, and includes a display unit 11, a touch panel 12, physical keys 13, a network (NW) communication device 15, a storage device 18, and a control device 19. These components are configured to transmit or receive data and signals to and from each other, through a bus.
The display unit 11 is, for example, constituted of a liquid crystal display (LCD) or an organic light-emitting diode (OLED) display. For example, a plurality of icons are displayed on the screen of the display unit 11.
The touch panel 12 is based on a resistive film or electrostatic capacitance. The touch panel 12 is overlaid on the screen of the display unit 11, and configured to detect a contact (touch) of the user's finger, along with the touched position, and to input an instruction of the user to the screen of the display unit 11. Accordingly, the touch panel 12 serves as an operation device for receiving the instruction of the user inputted through the screen of the display unit 11. The touch panel 12 exemplifies the input device in the present invention.
The mobile terminal device 10 also includes physical keys 13, in addition to the touch panel 12, as the operation device through which the user's operation is inputted.
The NW communication device 15 is a communication interface having a communication module such as a non-illustrated LAN chip. The NW communication device 15 is connected to a terminal device such as an external server, through the LAN or the internet.
The storage device 18 includes storage devices such as a random-access memory (RAM) and a hard disk drive (HDD), and contains various application programs and various types of information.
The control device 19 includes a processor, a random-access memory (RAM), a read-only memory (ROM), and so forth. The processor is, for example, a central processing unit (CPU), an application specific integrated circuit (ASIC), or a micro processing unit (MPU). The control device 19 acts as a controller 21 and a decider 22, when the processor executes a control program stored in the ROM or the storage device 18.
The control device 19 is connected to the display unit 11, the touch panel 12, the physical keys 13, the NW communication device 15, and the storage device 18. The controller 21 controls the operation of the cited components, and also transmits and receives signals or data, to and from these components.
The controller 21 also acts as a processing device that performs various types of processings. Further, the controller 21 controls the displaying operation of the display unit 11, and the communicating operation of the NW communication device 15.
The decider 22 decides whether a character string, inputted through the touch panel 12 to an input field, displayed on the display unit 11 under the control of the controller 21, satisfies a predetermined condition.
With the mobile terminal device 10 configured as above, when the user touches the blank portion in the input field, displayed in the screen of the display unit 11 under the control of the controller 21, the controller 21 detects, through the touch panel 12, the touch operation performed on the blank portion in the input field, and causes the display unit 11 to display a software keyboard on the screen thereof, according to the detection.
In addition, when the user touches a key of the software keyboard, while the software keyboard is displayed in the screen of the display unit 11, the controller 21 detects such touch operation through the touch panel 12, and when an input of a character, symbol, or code corresponding to the touched key is received by the touch panel 12, the controller displays the character, symbol, or code that has been received, in the input field.
Each time the key of the software keyboard is touched, the controller 21 detects the touch operation on that key, through the touch panel 12, and displays, each time the input of the character, symbol, or code associated with the touched key is sequentially received by the touch panel 12, the sequentially received character, symbol, or code in the input field. At this point, the decider 22 decides whether the character string composed of the character, symbol, or code displayed in the input field satisfies the predetermined condition. When the decider 22 decides that the predetermined condition is satisfied, the controller 21 sets the software keyboard undisplayed, in the screen of the display unit 11.
Examples of the predetermined condition include: (1) that the character, symbol, or code located at the tail end, or along a plurality of positions from the tail end, of the character string in the input field, accords with one of predetermined characters, symbols, or codes included in address information on the internet and indicating the tail end of the address information, such as “.com”, and “.co.jp”; (2) that the code at the tail end of the character string in the input field is a punctuation mark such as “.”; and (3) that the number of characters, symbols, or codes in the character string in the input field has reached a predetermined limiting number N. The limiting number N serves to limit the number of characters, symbols, or codes indicating, for example, the ID information and the password of the user. The mentioned conditions are stored in advance in the storage device 18, for example by the controller 21.
In the case where a plurality of input fields are displayed in the screen of the display unit 11, the controller 21 erases (sets to be undisplayed) the software keyboard.
Referring to the flowchart shown in
It will be assumed that a window W1 including input fields IR11 and IR12, for example as shown in
With the window W1 displayed as above in the screen of the display unit 11, the controller 21 stands by for a touch operation of the user on the screen of the display unit 11. Upon detecting, through the touch panel 12, a touch operation performed on the screen of the display unit 11, the controller 21 decides, on the basis of the touched position, whether the touch operation has been performed on the blank portion in one of the input fields IR11 and IR12 (S102).
For example, when the user touches the blank portion in the input field IR11 (where no character is displayed) as shown in
With the software keyboard SK displayed as above, the controller 21 stands by for a touch operation of the user on the screen of the display unit 11. Upon detecting, through the touch panel 12, a touch operation performed on the screen of the display unit 11, the controller 21 decides, on the basis of the touched position, on which of (i) a key of the software keyboard SK, (ii) a character string displayed in the input field IR11 or IR12, (iii) a character string displayed in a region of the screen of the display unit 11 other than the input fields IR11 and IR12, or (iv) a non-display region in the screen of the display unit 11 where no character, symbol, or code is displayed, except the input fields IR11 and IR12, the touch operation has been performed (S105).
For example, when the user touches the key of the software keyboard SK, the controller 21 detects the touch operation on that key through the touch panel 12 (“Key” at S105), and inputs the character, symbol, or code associated with the touched key to the position of the cursor C in the input field IR11, focused at S103, to display the character, symbol, or code at the position of the cursor C (S106). Then the decider 22 decides whether the character string composed of the character, symbol, or code in the input field IR11 satisfies one of the aforementioned conditions (S107).
When the decider 22 decides that the character string in the input field IR11 does not satisfy any of the mentioned conditions (No at S107), the operation returns to S105.
When the decider 22 decides that the character string in the input field IR11 satisfies one of the mentioned conditions (Yes at S107), the controller 21 decides that the inputting of the character string to the input field IR11 has been finished (S108).
For example, when the decider 22 decides that the condition that, as shown in
Otherwise, when the decider 22 decides that the condition that, as shown in
Further, when the decider 22 decides that the condition that, as shown in
When the user touches, while the software keyboard SK is displayed, the non-display region in the screen of the display unit 11 outside the input fields IR11 and IR12, where no character, symbol, or code is displayed, the controller 21 detects the touch operation on the non-display region, through the touch panel 12 (“Non-display Region” at S105), and decides that at this point the inputting of the character string to the input field IR11 has been finished (S108).
For example, when a touch operation is detected on the non-display region in the screen of the display unit 11 outside the input fields IR11 and IR12, where no character, symbol, or code is displayed, as shown in
When the user touches the character string displayed in the input field IR11, while the software keyboard SK is displayed, the controller 21 detects the touched position in the character string, through the touch panel 12 (“Character String” at S105), and moves the cursor C to the detected position in the input field IR11 (S109).
For example, when a touched position P1 is detected in the character string in the input field IR11 as shown in
Further, when the user keeps touching, while the software keyboard SK is displayed, the character string displayed in a region other than the input fields IR11 and IR12 in the screen of the display unit 11 for a predetermined period of time at S105, and the controller 21 detects the touch operation continued for the predetermined period of time, through the touch panel 12 (“Copy” at S105), the controller 21 saves the character string displayed at the touched position (S110). When the user touches the input field IR11 thereafter, the controller 21 detects the touched position in the input field IR11, through the touch panel 12 (S111), and displays the character string saved at S110, at the detected position in the input field IR11 (S112).
For example, upon detecting a touch operation continued for the predetermined period of time, on the character string TA in the region in the screen of the display unit 11 outside the input fields IR11 and IR12 as shown in
Thereafter, the operation returns to S105. For example, upon detecting through the touch panel 12 that a key of the software keyboard SK has been touched (“Key” at S105), the controller 21 displays the character, symbol, or code associated with the touched key as an addition to the character string TA displayed in the input field IR11 (S106), and decides whether the character string in the input field IR11 satisfies any of the aforementioned conditions (S107). Then the controller 21 repeats a series of operations including returning to S105 upon deciding that none of the conditions is satisfied (No at S107), and finishing the inputting of the character string to the input field IR11 (S108), upon deciding that one of the conditions is satisfied (Yes at S107).
Then the controller 21 decides, after deciding that the inputting of the character string to the input field IR11 has been finished (S108), whether there is another input field in which no character string has been inputted yet (S113).
Upon deciding that there is another input field in which no character string has been inputted yet (Yes at S113), the controller 21 puts the focus on such input field, and displays the cursor C in the input field (input field IR12, in the example of
When the inputting of the character string is finished in all the input fields displayed, and the controller 21 decides that there is no input field in which no character string has been inputted (No at S113), the controller 21 erases the display of the software keyboard SK, from the screen of the display unit 11 (S115). Thereafter, the operation is finished.
The controller 21 acquires the character strings respectively displayed in the input fields IR11 and IR12, upon setting the software keyboard SK undisplayed as described above, and proceeds to predetermined processings to be performed on the basis of the character strings in the input fields IR11 and IR12 that have been acquired.
According to the foregoing embodiment, as described above, when the user touches the blank portion in the input field (where no character is displayed in the input field) displayed in the screen of the display unit 11, the software keyboard is displayed in the screen of the display unit 11. Then the software keyboard is erased (set to be undisplayed) from the screen of the display unit 11, when the character string in the input field satisfies one of the predetermined conditions. In the case where a plurality of input fields are displayed in the screen of the display unit 11, the software keyboard continues to be displayed, until the inputting in all the input fields is finished. Such an arrangement enables the software keyboard to be properly displayed and erased, so as to allow the user to handle the device more easily, thereby improving the user-friendliness of the software keyboard.
Although the display device is exemplified by the mobile terminal device 10 in the foregoing embodiment, the display device according to the present invention is broadly applicable to other types of electronic devices.
The display method according to the embodiment may be provided as a display control program stored in the ROM or the storage device 18. The display control program may be recorded on a computer-readable, non-transitory recording medium, such as a hard disk, a CD-ROM, a DVD-ROM, or a semiconductor memory. In this case, the computer-readable, non-transitory recording medium, containing the display control program recorded thereon, constitutes an embodiment of the present invention.
Further, the configurations and processings described in the foregoing embodiments with reference to
Number | Date | Country | Kind |
---|---|---|---|
2019-023901 | Feb 2019 | JP | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/JP2020/001820 | 1/21/2021 | WO | 00 |