METHOD AND DEVICE FOR SWITCHING KEYBOARD STYLE

A method and a device for switching a keyboard style are provided. The method includes, in a first scene interface, starting a single-hand operation mode. The method also includes judging whether a current keyboard style is a first keyboard style. The method further includes, when it is determined that the current keyboard style is the first keyboard style, switching the first keyboard style to a second keyboard style in a second interface corresponding to the single-hand operation mode, wherein an input area in the first keyboard style has a smaller size than an input area in the second keyboard style.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is based upon and claims priority to Chinese Patent Application No. 201510781612.3, filed on Nov. 13, 2015, the entire contents of which are incorporated herein by reference.

TECHNICAL FIELD

The present disclosure generally relates to the field of terminal technologies, and more particularly, to a method and a device for switching a keyboard style.

BACKGROUND

As users' demand on the terminal display effect becomes higher, display screens of terminals are becoming larger. Although a large display screen improves the display effect, it brings some inconvenience to the users in single-hand operations.

To facilitate users to perform single-hand operations on large display screens, terminals can implement a single-hand operation mode. When the single-hand operation mode is started, a terminal shrinks the current display interface and displays the shrunk display interface at a lower region of the display screen, so that users can perform a single-hand operation at any location on the shrunk display interface.

For example, a terminal displays an input area and a keyboard (e.g., a QWERTY keyboard) within an input interface. If the single-hand operation mode is started, the terminal shrinks the input interface and displays a shrunk input area and a shrunk keyboard within the shrunk input interface.

SUMMARY

According to a first aspect of the embodiments of the present disclosure, a method for switching a keyboard style is provided. The method includes, in a first scene interface, starting a single-hand operation mode. The method also includes judging whether a current keyboard style is a first keyboard style. The method further includes, when it is determined that the current keyboard style is the first keyboard style, switching the first keyboard style to a second keyboard style in a second interface corresponding to the single-hand operation mode, wherein an input area in the first keyboard style has a smaller size than an input area in the second keyboard style.

According to a second aspect of the embodiments of the present disclosure, a device for switching a keyboard style is provided. The device includes a processor and a memory configured to store instructions executable by the processor. The processor is configured to execute the instructions to start a single-hand operation mode in a first interface, judge whether a current keyboard style is a first keyboard style, and switch the first keyboard style to a second keyboard style in a second interface corresponding to the single-hand operation mode when it is determined that the current keyboard style is the first keyboard style, wherein an input area in the first keyboard style has a smaller size than an input area in the second keyboard style.

According to a third aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided. The non-transitory computer-readable storage medium has stored therein instructions that, when executed by a processor of a mobile terminal, cause the mobile terminal to perform a method for switching a keyboard style. The method includes, in a first interface, starting a single-hand operation mode. The method also includes judging whether a current keyboard style is a first keyboard style. The method further includes, when it is determined that the current keyboard style is the first keyboard style, switching the first keyboard style to a second keyboard style in a second interface corresponding to the single-hand operation mode, wherein an input area in the first keyboard style has a smaller size than an input area in the second keyboard style.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure, as claimed.

DETAILED DESCRIPTION

To better illustrate the purpose, the technical scheme, and the advantages of the present disclosure, embodiments of the present disclosure are described below in further details in conjunction with the accompanying drawings.

Before describing the embodiments in detail, the single-hand operation mode is first explained as follows.

When the display screen of a terminal is too large, a user cannot reach and touch many positions on the display screen during the single-hand operation, which makes the single-hand operation difficult. Consistent with the disclosed embodiments, if the terminal starts the single-hand operation mode when an interface is currently displayed, the terminal shrinks the current interface and displays the shrunk interface at a lower region of the display screen. The shrunk interface allows the fingers of the user to reach and touch any location on the shrunk interface, thereby enabling the user to perform single-hand operations in the shrunk interface.

FIG. 1is a flowchart showing a method for switching a keyboard style according to an exemplary embodiment. As shown inFIG. 1, the method for switching a keyboard style, which is performed by a terminal, includes the following steps:

In Step101: in a first interface displayed on a display screen of the terminal, the terminal starts a single-hand operation mode.

In Step102: the terminal judges whether the current keyboard style is a first keyboard style.

In Step103: when the terminal determines that the current keyboard style is the first keyboard style, the terminal switches the first keyboard style to a second keyboard style in a second interface displayed corresponding to the single-hand operation mode. An input area in the first keyboard style has a smaller size than an input area in the second keyboard style.

In related art, if the single-hand operation mode is started when a user inputs through a keyboard, the current interface is shrunk, and the keyboard displayed on the current interface is shrunk accordingly. Keyboards may include several styles, each of which may have an input area of a different size. If the current keyboard style is associated with an input area having a smaller size, shrinking the current keyboard may make the input area too small, making it easier for the users to introduce errors in input operations. This affects a user's normal input and reduces the input efficiency.

In the disclosed embodiments, when the single-hand operation mode is started, if the current keyboard style is the first keyboard style associated with an input area having a relatively smaller size, the terminal automatically switches the first keyboard style to a second keyboard style associated with an input area having a relatively larger size. In this way, even when the keyboard is shrunk, the size of the input area is not too small. Therefore, input operation errors can be reduced or avoided, impact on a user's normal input operations can be avoided, and the input efficiency in the single-hand operation mode can be improved.

By switching the current first keyboard style associated with an input area having a relatively smaller size to a second keyboard style associated with an input area having a relatively larger size when starting the single-hand operation mode, the disclosed methods reduce or avoid a user's input operation errors, thereby reducing or avoiding the impact on the user's normal input operations and improving the input efficiency in the single-hand operation mode.

In some embodiments, the method further includes:

when exiting from the single-hand operation mode, switching the second keyboard style to the first keyboard style in the first interface.

In some embodiments, the method further includes:

judging whether a keyboard includes the first keyboard style and the second keyboard style;

when it is determined that the keyboard includes the first keyboard style and the second keyboard style, displaying a prompt message, wherein the prompt message requests a user to confirm whether to switch the keyboard style in the single-hand operation mode; and

when detecting a confirm operation in response to the prompt message, determining to switch the keyboard style in the single-hand operation mode.

In some embodiments, when it is determined that the current keyboard style is the first keyboard style, then in a second interface displayed corresponding to the single-hand operation mode, the terminal switches the first keyboard style to a second keyboard style. For example, when it is determined to switch the keyboard style in the single-hand operation mode and when it is determined that the current keyboard style is the first keyboard style, the terminal switches the first keyboard style to the second keyboard style in the second interface.

In some embodiments, when it is determined that the current keyboard style is the first keyboard style, then in a second interface displayed corresponding to the single-hand operation mode, the terminal switches the first keyboard style to the second keyboard style. For example, when it is determined that the current keyboard style is the first keyboard style and the current display screen is in a vertical screen state, the terminal switches the first keyboard style to the second keyboard style in the second interface displayed corresponding to the single-hand operation mode.

In some embodiments, the first keyboard style is a QWERTY style and the second keyboard style is a nine-square grid style.

All of the above optional technical schemes can be implemented in any combinations as optional embodiments of the present disclosure. Detailed description of the various combinations is omitted.

FIG. 2Ais a flowchart showing a method for switching a keyboard style according to another exemplary embodiment. As shown inFIG. 2A, the method for switching a keyboard style, which is performed by a terminal, includes the following steps:

In Step201: the terminal displays a first interface and starts a single-hand operation mode in the first interface.

The terminal may be a mobile phone, a tablet computer, a computer, and so on. The terminal may be any suitable equipment or device provided with a large display screen. The disclosed embodiments do not limit the type of terminal.

In some embodiments, a mode in which the terminal is not in the single-hand operation mode is referred to as a normal operation mode. The first interface, displayed by the terminal in the normal operation mode, has the same size as or a smaller size than the display screen of the terminal. The disclosed embodiments do not limit the size of the first interface.

For example, the first interface may be an interface displayed for a call, a message, a game, a video playback, a browser search, and other interfaces displayed in the normal operation mode. The disclosed embodiments do not limited the type of the first interface.

In the first interface, when the display screen of the terminal is too large, a user cannot reach and touch many positions on the display screen in the single-hand operation mode, making the single-hand operation difficult. To facilitate the single-hand operation, the terminal starts the single-hand operation mode in the first interface. For example, the single-hand operation may be automatically started by the terminal according to the data amount displayed in the first interface. Alternatively or additionally, the single-hand operation may be started by a user's triggering operation, such as double-clicking the Home button of the terminal or long-pressing the display screen. The disclosed embodiments do not limit the manner in which the single-hand operation mode is started.

After the single-hand operation mode is started in the first interface displayed on the terminal, the terminal may shrink the current first interface and display the shrunk first interface at a lower region of the display screen, which is referred to as a second interface. The fingers of a user can reach and touch any position on the shrunk interface to carry out single-hand operations in the shrunk first interface (i.e., the second interface).

After starting the single-hand operation mode while displaying the first interface, the terminal displays the second interface which has a smaller size than the first interface. The terminal can display the second interface in a first preset region of the display screen. Subsequently, when the terminal receives a position switching instruction associated with the second interface, the terminal can display the second interface in a second preset region of the display screen.

The first preset region and the second preset region are located at different locations on the display screen. For example, the first preset region and the second preset region may be located at the central lower region, the left lower region, the right lower region, or other locations of the display screen that are convenient for users' single-hand operations. The first preset region and the second preset region may be set by the terminal in advance or may be manually set by a user. The disclosed embodiments do not limit the manner in which the first preset region and the second preset region are set. In addition, the terminal may display a position switching option in the second interface. Position switching instructions can be triggered by a user clicking or pressing the position switching option or by other operations, which are not limited in the disclosed embodiments.

For example, when a user starts the single-hand operation mode by clicking the right lower region of the display screen in the first interface, the terminal displays the second interface at the right lower region of the display screen. The user can carry out single-hand operations conveniently with the right hand. When the user feels tired after having operated with the right hand for a long time, the user can click the left lower region of the display screen to trigger a position switching instruction. After receiving the position switching instruction, the terminal displays the second interface at the left lower region of the display screen, such that the user can carry out single-hand operations conveniently with the left hand.

In Step202: the terminal judges whether the current keyboard style is the first keyboard style. If the current keyboard style is the first keyboard style (Yes, Step202), the terminal executes Step203. Otherwise, if the current keyboard style is not the first keyboard style (No, Step202), the terminal executes Step205.

Considering that the size of the second interface displayed by the terminal is relatively small after the single-hand operation mode is started, if the user is to input through the keyboard provided in the second interface, the size of the keyboard displayed by the terminal for receiving the user input is also relatively small. The keyboard may include several keyboard styles, each of which may have an input area of a different size. If the current keyboard style is one in which the input area has a smaller size, the input area may become too small when the keyboard is displayed according to the current keyboard style in the second interface. Consequently, errors may be easily introduced in user's input operations. This affects the user's normal input and reduces the input efficiency. The input area of the keyboard may include keys provided on the keyboard. Additionally or alternatively, the input area may include an area for detecting the sliding operations of users. The disclosed embodiments do not limit the input area.

To solve the problem associated with the input area of the keyboard being too small in the single-hand operation mode, the terminal may judge, in advance, whether the current keyboard style is the first keyboard style when starting the single-hand operation mode. The first keyboard style is the one in which the input area has a relatively smaller size. For example, the first keyboard style may be a QWERTY style. In addition, the first keyboard style can be determined by the terminal according to the size of the input area of each keyboard style, or can be set by a user. The first keyboard style may include one or more keyboard styles. The disclosed embodiments do not limit the keyboard styles.

If the current keyboard style is the first keyboard style, after the single-hand operation mode is started, the size of the input area of the keyboard in the second interface may be too small, which impacts the normal input of the user in the single-hand operation mode. To facilitate the normal input of the user in the single-hand operation mode, it is desirable to switch the keyboard style when starting the single-hand operation mode and to execute Step203, in order to avoid causing errors in the user's input process.

If the current keyboard style is not the first keyboard style, after the single-hand operation mode is started, the size of the input area of the keyboard in the second interface may be sufficiently large, and does not impact the normal input of the user in the single-hand operation mode. In such situations, the terminal does not need to switch the keyboard style when starting the single-hand operation mode. The terminal can directly execute Step205to display the second interface, through which the user can perform input operations directly on the current keyboard style.

In Step203: the terminal judges whether the keyboard includes the first keyboard style and the second keyboard style, and displays a prompt message when it is determined that the keyboard includes the first keyboard style and the second keyboard style.

The second keyboard style is the one having an input area that has a relatively larger size. For example, the second keyboard style may be a nine-square grid style or a handwritten keyboard style. The second keyboard style can be determined by the terminal according to the size of the input area of each keyboard style, or can be set by a user. The second keyboard style can include one or more keyboard styles. The disclosed embodiments do not limit the second keyboard style.

In some embodiments, an input area in the first keyboard style has a smaller size than an input area in the second keyboard style. For example, the first keyboard style is a QWERTY style, and the second keyboard style is a nine-square grid style. As another example, the first keyboard style is a nine-square grid style and the second keyboard style is a handwritten style.

To improve efficiency, after the terminal determines that the current keyboard style is the first keyboard style, the terminal may further judge whether the keyboard includes the first keyboard style and the second keyboard style. If the keyboard does not include the first keyboard style or the second keyboard style, which indicates that the keyboard cannot be switched between the first keyboard style and the second keyboard style, the terminal does not perform a switch. Rather, the terminal directly executes Step205. If the keyboard includes the first keyboard style and the second keyboard style, which indicates that the keyboard can be switched between the first keyboard style and the second keyboard style, then the terminal can display, on the second interface, a prompt message to request a user to confirm whether to switch the keyboard style in the single-hand operation mode, such that the user may determine whether to switch the keyboard style.

Referring toFIG. 2B, which shows a prompt message displayed on a display screen of a device for requesting a user to confirm whether to switch a keyboard style. As shown inFIG. 2B, a terminal20displays, in a normal operation mode, an input interface22, in which the keyboard style is a QWERTY style26. The keyboard supports the switch between the QWERTY style and the nine-square grid style. To facilitate the normal input by a user in the single-hand operation mode, the terminal20displays a prompt message24, which requests the user to confirm whether to automatically switch the keyboard to the nine-square grid style when triggering the single-hand operation mode.

It is to be noted that Step203is an optional step, which may not be executed by the terminal. When determining that the current keyboard style is the first keyboard style, the terminal may directly switch the first keyboard style to the second keyboard style. The disclosed embodiments do not limit whether Step203is executed.

In Step204: when detecting that a user performs a confirm operation in response to the prompt message, the terminal determines to switch the keyboard style in the single-hand operation mode, and switches the first keyboard style to the second keyboard style in the second interface to enable the user to perform input operations based on the second keyboard style. Subsequently, the terminal executes Step206to exit the single-hand operation mode, as described below.

If the user agrees to switch the keyboard style in the single-hand operation mode, the user can trigger a confirm operation in response to the prompt message. When detecting the confirm operation in response to the prompt message from the user, the terminal switches the first keyboard style to the second keyboard style in the second interface.

Referring toFIG. 2B, after the user clicks the OK button in the prompt message24, the terminal detects the confirm operation input by the user in response to the prompt message, and determines that the user agrees to automatically switch the keyboard to the nine-square grid style when triggering the single-hand operation mode. After starting the single-hand operation mode, the terminal automatically switches the QWERTY style26shown inFIG. 2Bto the nine-square grid style in the second interface. Then, the user can perform input operations based on the nine-square grid style in the second interface.

In the disclosed embodiments, if the single-hand operation mode is started when the first interface displays the keyboard of the first keyboard style, the terminal automatically switches the keyboard style and displays the keyboard of the second keyboard style in the second interface. If the single-hand operation mode is started when the first interface does not display a keyboard, the terminal automatically switches the keyboard style and displays the second interface that is generated by shrinking the first interface. Subsequently, if it is detected in the second interface a user operation invoking a keyboard, the terminal displays the keyboard of the second keyboard style in the second interface. Then the user can perform input operations based on the second keyboard style in the second interface.

In addition, if the current keyboard style is the first keyboard style, considering that the display area is sufficiently large in the landscape mode, even if the single-hand operation mode is started in the landscape mode, the size of the input area in the first keyboard style is sufficiently large in the second interface, and does not impact the normal input of the user. Therefore, in some embodiments, the keyboard style used in the single-hand operation mode may not be switched in the landscape mode, while the keyboard style used in the single-hand operation mode may be switched in the vertical (or portrait) screen state. In other words, when it is determined the current keyboard style is the first keyboard style and the current display screen is in a vertical screen state, the first keyboard style is switched to the second keyboard style in the second interface.

For example, when it is determined that the keyboard style is the first keyboard style, the terminal may further judge whether the current display screen is in a vertical screen state. If the current display screen is in the vertical screen state, the first keyboard style is switched to the second keyboard style in the second interface, and the user can perform input operations based on the second keyboard style. If the current display screen is in a landscape state, the keyboard style is not switched and the user can perform input operations based on the first keyboard style.

In the above embodiments, Step203and Step204are described as being executed while the single-hand operation mode is started. In some embodiments, Step203and Step204may be executed at any time in the normal operation mode. For example, Step203and Step204may be executed when the terminal detects, in the normal operation mode, a user operation invoking a keyboard, or when the terminal is restarted. The disclosed embodiments do not limit the time when Step203and Step204are executed.

In Step205: the terminal displays the second interface in the single-hand operation mode to enable the user to perform input operations based on the current keyboard style in the second interface.

When the single-hand operation mode is started, the terminal does not switch the current keyboard style, but instead, directly displays the second interface. Subsequently, when the terminal detects a user operation invoking a keyboard, the terminal displays the current keyboard style in the second interface, that is, the keyboard style used before the single-hand operation mode is started. The user can perform input operations based on the current keyboard style.

In Step206: the terminal exits from the single-hand operation mode, and switches the second keyboard style to the first keyboard style in the first interface.

Specifically, the terminal can exit from the single-hand operation mode automatically according to the data amount displayed in the first interface or according to an operation triggered by a user in the single-hand operation mode, such as double-clicking the Home button or long-pressing the display screen. The disclosed embodiments do not limit the exit manner.

When the terminal exits from the single-hand operation mode, the terminal restores or switches the second keyboard style to the first keyboard style used before the single-hand operation mode is started. Subsequently, when a user operation invoking a keyboard is detected, the terminal displays the keyboard according to the first keyboard style in the first interface. The user can perform input operations based on the first keyboard style.

For example, if the keyboard style used before the single-hand operation mode is started is a QWERTY style, and the keyboard style used in the single-hand operation mode is a nine-square grid style, then after exiting from the single-hand operation mode, the terminal restores the keyboard style to the QWERTY style. Then the user can perform input operations through the keyboard displayed in the QWERTY style.

In some embodiments, when starting the single-hand operation mode, and before switching keyboard styles, the terminal may record or store the first keyboard style used before switching the keyboard style, and then switch the first keyboard style to the second keyboard style. Subsequently, when exiting from the single-hand operation mode, the terminal may switch the second keyboard style back to the recorded or stored first keyboard style.

The disclosed embodiments can be implemented as input applications. Through adapting interfaces between the input applications and a current application being executed by the terminal, the input applications can cause a keyboard to be displayed in an interface of the current application. Keyboard switching described above may be performed within the interface of the current application.

In related art, after starting the single-hand operation mode, the terminal only shrinks the interface, but does not optimize the display of the interface in the single-hand operation mode, or consider the difficulty associated with input operations performed through the shrunk interface. Therefore, the related art leads to a poor user experience and is not capable of meeting users' experience requirements. In the disclosed embodiments, after the single-hand operation mode is started, the terminal optimizes the switch of a keyboard style in the single-hand operation mode, thereby providing a better input experience for users.

According to the disclosed methods and devices, when starting the single-hand operation mode, by switching the current first keyboard style in which the size of the input area is relatively smaller to the second keyboard style in which the size of the input area is relatively larger, errors can be avoided in a user's input process, the impact to user's normal input can be reduced or avoided, and the input efficiency and user experience in the single-hand operation mode can be improved.

FIG. 3is a block diagram illustrating a plurality of modules included in a device for switching a keyboard style according to an exemplary embodiment. The device (or terminal) may be a mobile phone, a tablet computer, a computer and other devices. Referring toFIG. 3, the device having a function of switching a keyboard style may include a mode processing module310, a first judgment module320, and a first switching module330.

The mode processing module310is configured to start a single-hand operation mode in a first interface displayed on the display screen of the device.

The first judgment module320is configured to judge whether a current keyboard style is a first keyboard style.

The first switching module330is configured to switch the first keyboard style to a second keyboard style in a second interface displayed corresponding to the single-hand operation mode, when it is determined that the current keyboard style is the first keyboard style. An input area in the first keyboard style has a smaller size than an input area in the second keyboard style.

In the disclosed device, when starting the single-hand operation, mode, by switching the current first keyboard style in which the size of the input area is relatively smaller to the second keyboard style in which the size of the input area is relatively larger, errors can be avoided in a user's input process, the impact to user's normal input can be reduced or avoided, and the input efficiency and user experience in the single-hand operation mode can be improved.

FIG. 4is a block diagram illustrating a plurality of modules included in a device for switching a keyboard style according to an exemplary embodiment. The device (or terminal) may be a mobile phone, a tablet computer, a computer and other devices. Referring toFIG. 4, the device having a function of switching a keyboard style may include a mode processing module410, a first judgment module420, and a first switching module430.

The mode processing module410is configured to start a single-hand operation mode in a first interface displayed on the display screen of the device.

The first judgment module420is configured to judge whether the current keyboard style is a first keyboard style.

The first switching module430is configured to switch the first keyboard style to a second keyboard style in a second interface displayed corresponding to the single-hand operation mode, when it is determined that the current keyboard style is the first keyboard style. An input area in the first keyboard style has a smaller size than an input area in the second keyboard style.

In some embodiments, the device may further include:

a second switching module440configured to switch the second keyboard style to the first keyboard style in the first interface when exiting from the single-hand operation mode.

In some embodiments, the device may further include:

a second judgment module450configured to judge whether a keyboard includes the first keyboard style and the second keyboard style;

a prompt module460configured to display a prompt message when it is determined that the keyboard includes the first keyboard style and the second keyboard style, wherein the prompt message requests a user to confirm whether to switch the keyboard style in the single-hand operation mode; and

a determination module470configured to determine to switch the keyboard style in the single-hand operation mode when detecting a confirm operation in response to the prompt message.

In some embodiments, the first switching module430is further configured to switch the first keyboard style to the second keyboard style in the second interface, when it is determined to switch the keyboard style in the single-hand operation mode, and when it is determined that the current keyboard style is the first keyboard style.

In some embodiments, the first switching module430is further configured to switch the first keyboard style to the second keyboard style in the second interface displayed corresponding to the single-hand operation mode, when it is determined that the current keyboard style is the first keyboard style and the current display screen is in a vertical screen state.

In some embodiments, the first keyboard style is a QWERTY style and the second keyboard style is a nine-square grid style.

For the device of the disclosed embodiments, the specific operations each module performs have been described in detail in the above discussion of embodiments of the disclosed methods. Therefore, further descriptions of how the modules perform various operations are omitted.

In the device of the disclosed embodiments, when starting the single-hand operation mode, by switching the current first keyboard style in which the size of the input area is relatively smaller to the second keyboard style in which the size of the input area is relatively larger, errors can be avoided in a user's input process, the impact to user's normal input can be reduced or avoided, and the input efficiency and the user experience in the single-hand operation mode can be improved.

FIG. 5is a block diagram illustrating a device500including a function for switching a keyboard style according to an exemplary embodiment. The device500may be a mobile phone, a tablet computer, a computer and other devices.

Referring toFIG. 5, the device500may include one or more of the following components: a processing component502, a memory504, a power supply component506, a multimedia component508, an audio component510, a sensor component514, an input/output interface512, and a communication component516.

The processing component502is configured to control overall operation of the device500, such as the operations associated with display, telephone calls, data communications, camera operations and recoding operations. The processing component502includes one or more processors520configured to execute instructions to perform all or portions of the disclosed methods. Moreover, the processing component502may include one or more modules that facilitate the interaction between the processing module502and other components. For instance, the processing component502may include a multimedia module configured to facilitate the interaction between the multimedia component508and the processing component502.

The memory504is configured to store various types of data to support the operation of the device500. Examples of such data include instructions for any applications or methods executed by the device500. The memory504may be implemented using any type of volatile or non-volatile memory devices, or a combination thereof, for example, a Static Random Access Memory (SRAM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), an Erasable Programmable Read-Only Memory (EPROM), a Programmable Read-Only Memory (PROM), a Read-Only Memory (ROM), a magnetic memory, a flash memory, a magnetic disk or an optical disk. The memory504also stores one or more modules that are configured to be executed by one or more processors520to perform all or portions of the methods shown in any one ofFIG. 1,FIG. 2A, andFIG. 3.

The power supply component506is configured to supply power to one or more components of the device500. The power supply component506may include a power management system, one or more power sources, and any other components associated with the generation, management, and distribution of electrical power in the device500.

The multimedia component508includes a screen that functions as an output interface between the device500and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes the touch panel, the screen may be implemented as a touch screen configured to receive input signals from the user. The touch panel includes one or more touch sensors configured to sense touches, swipes, and gestures on the touch panel. The touch sensors may not only sense a boundary of a touch or swipe input, but also sense a period of time and a pressure associated with the touch or swipe input.

The audio component510is configured to output audio signals and/or receive input audio signals. For example, the audio component510includes a microphone configured to receive an external audio signal when the device500is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in the memory504or transmitted via the communication component516. In some embodiments, the audio component510further includes a speaker configured to output audio signals.

The sensor component514includes one or more sensors configured to provide status assessments of various aspects of the device500. For instance, the sensor component514may detect an open/closed status of the device500, relative positioning of components, a change in position of the device500or a component of the device500, and a change in temperature of the device500. The sensor component514may include a magnetic sensor, a pressure sensor, or a temperature sensor.

The disclosed embodiments also provide a non-transitory computer-readable storage medium for storing instructions, such as the memory504that stores instructions. The instructions can be executed by the processor520included in the device500for performing the above-described methods for switching a keyboard style. For example, the non-transitory computer-readable storage medium may be a ROM, a Random-Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disc, an optical data storage device, and the like.

It will be appreciated that the embodiments of the present disclosure are not limited to the exact construction that has been described above and illustrated in the accompanying drawings, and that various modifications and changes can be made without departing from the scope thereof. It is intended that the scope of the embodiments of the present disclosure only be limited by the appended claims.