Input method, device and device for input
By creating target input boxes and input box pointers in the input method keyboard panel, the problem of the inability to display and edit input boxes in the existing technology is solved, and the expansion of input method application functions and simplification of business logic is achieved.
Patent Information
- Application Number
- CN202110579427.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-26
- Publication Date
- 2024-12-10
- Estimated Expiration
- 2041-05-26
AI Technical Summary
The prior art cannot display and edit input boxes inside the input method keyboard panel, which limits the functional expansion of input method applications, such as translation function and emoticon search function.
By detecting that when a user triggers a specific function, a target input box is created in the input method keyboard panel, and an input box pointer is created to manipulate the input box. The content input by the user is uploaded to the target input box based on the pointer, thereby supporting input The input box inside the keyboard panel display and edit, decoupling the correlation between business and keyboard panel.
It realizes the display and editing of input boxes inside the input method keyboard panel, reduces the complexity of business logic, and supports the functional expansion of multiple input method applications.
Smart Images

Figure CN115480653B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to an input method, device, and a device for input. Background Art
[0002] With the development of computer technology, the functions of input method applications are becoming more and more abundant. Input method applications can provide a keyboard panel, and users can input content by clicking the keys in the keyboard panel, and the input content is displayed on the screen in the system input box outside the input method keyboard interface.
[0003] However, with the increase in user demand and input method application functions, some input method functions (translation function, emoji search function, etc.) require building an input box inside the input method keyboard panel. In the prior art, the third-party input method development panel provided by the operating system (such as iOS) cannot realize the display and editing of the input box inside the input method keyboard panel. Summary of the invention
[0004] The embodiments of the present application provide an input method, a device and a device for input to solve the technical problem in the prior art that an input box cannot be displayed and edited inside an input method keyboard panel.
[0005] In a first aspect, an embodiment of the present application provides an input method, the method comprising: when it is detected that a user triggers a specific function of an input method application, creating a target input box located within an input method keyboard panel; creating an input box pointer for manipulating the target input box; and based on the input box pointer, displaying the content input by the user to the target input box.
[0006] In some embodiments, the creating a target input box located in the input method keyboard panel includes: calling a preset input box control applicable to the input method keyboard panel; and creating a target input box located in the input method keyboard panel through the preset input box control.
[0007] In some embodiments, the input box control used to host the target input box inherits from the preset input box control, and the preset input box control inherits from the system input box control.
[0008] In some embodiments, the creating of an input box pointer for manipulating the target input box includes: calling a preset text protocol pointer applicable to the input method keyboard panel; and creating an input box pointer for manipulating text in the target input box through the preset text protocol pointer.
[0009] In some embodiments, the input box pointer is inherited from the preset text protocol pointer, and the preset text protocol pointer is inherited from the system text protocol pointer.
[0010] In some embodiments, the method of displaying the user input content on the target input box based on the input box pointer includes: controlling the input box pointer to point to the target input box; transmitting the candidate items selected by the user during the input process to the input box pointer, and displaying the candidate items on the target input box through the input box pointer.
[0011] In some embodiments, the method further includes: when it is detected that the user triggers a non-specific function of the input method application, based on a system text protocol pointer, displaying the content input by the user to a system input box outside the input method keyboard panel.
[0012] In the second aspect, an embodiment of the present application provides an input device, which includes: a first creation unit, configured to create a target input box located within an input method keyboard panel when it detects that a user triggers a specific function of an input method application; a second creation unit, configured to create an input box pointer for manipulating the target input box; and a first screen-up unit, configured to display the content input by the user to the target input box based on the input box pointer.
[0013] In some embodiments, the first creating unit is further configured to: call a preset input box control applicable to the input method keyboard panel; and create a target input box located in the input method keyboard panel through the preset input box control.
[0014] In some embodiments, the input box control used to host the target input box inherits from the preset input box control.
[0015] In some embodiments, the second creation unit is further configured to: call a preset text protocol pointer applicable to the input method keyboard panel; and create an input box pointer for manipulating text in the target input box through the preset text protocol pointer.
[0016] In some embodiments, the input box pointer is inherited from the preset text protocol pointer.
[0017] In some embodiments, the first upper screen unit is further configured to: control the input box pointer to point to the target input box; transfer the candidate items selected by the user during the input process to the input box pointer, and bring the candidate items up to the target input box through the input box pointer.
[0018] In some embodiments, the device also includes: a second screen-up unit, configured to, when detecting that the user triggers a non-specific function of the input method application, display the content input by the user to the system input box outside the input method keyboard panel based on the system text protocol pointer.
[0019] In a third aspect, an embodiment of the present application provides a device for input, comprising a memory and one or more programs, wherein one or more programs are stored in the memory, and when the programs are executed by one or more processors, the steps of the method described in the first aspect are implemented.
[0020] In a fourth aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the first aspect above.
[0021] The input method, device and device for input provided by the embodiment of the present application create a target input box located in the input method keyboard panel when detecting that the user triggers a specific function of the input method application; and then create an input box pointer for manipulating the target input box; so that the content input by the user can be displayed on the screen to the target input box based on the input box pointer. In this way, the display and editing of the input box inside the input method keyboard panel can be supported, and at the same time, the association between the business and the input method keyboard panel is decoupled, which can reduce the complexity of the business logic compared to the method of adding the display logic for the input method keyboard panel for different businesses respectively. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0023] Figure 1 is a flow chart of an embodiment of an input method according to the present application;
[0024] Figure 2 is a schematic diagram of a text service framework according to the input method of the present application;
[0025] Figure 3 is a schematic structural diagram of an embodiment of an input device according to the present application;
[0026] Figure 4 is a schematic structural diagram of a device for input according to the present application;
[0027] Figure 5 It is a schematic diagram of the structure of the server in some embodiments of the present application. DETAILED DESCRIPTION
[0028] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It should also be noted that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0029] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0030] Please refer to Figure 1 , which shows a process 100 of an embodiment of the input method according to the present application. The above input method can be run on various electronic devices, including but not limited to: servers, smart phones, tablet computers, e-book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, car computers, desktop computers, set-top boxes, smart TVs, wearable devices, etc.
[0031] The input method application mentioned in the embodiment of the present application can support multiple input methods. Among them, the input method can be a coding method used to input various symbols into electronic devices such as computers and mobile phones. Users can use the input method application to conveniently input the required characters or strings into electronic devices. It should be noted that in the embodiment of the present application, in addition to supporting common Chinese input methods (such as pinyin input method, Wubi input method, Zhuyin input method, voice input method, handwriting input method, etc.), the input method can also support input methods of other languages (such as English input method, Japanese Hiragana input method, Korean input method, etc.), and no limitation is made on the input method and the language type of the input method.
[0032] The input method in this embodiment may include the following steps:
[0033] Step 101: when it is detected that a user triggers a specific function of an input method application, a target input box is created in an input method keyboard panel.
[0034] In this embodiment, the execution subject of the input method (such as the above-mentioned electronic device) may be installed with an input method application. When the user uses the input method application to input, an input method keyboard panel may be presented, and the user may click the buttons in the panel to input the input string, select the candidate items, and display the candidate items on the screen.
[0035] In this embodiment, the above-mentioned execution subject can detect the user's operation in the input method application in real time. When it is detected that the user triggers a specific function of the input method application, a target input box located in the input method keyboard panel can be created. The target input box is the input box located in the input method keyboard panel. In practice, after the specific function is triggered, the target input box will be presented inside the input method keyboard panel. The specific function can be an input method function that requires an input box to be displayed inside the input method keyboard panel, such as a translation function, an emoticon search function, etc.
[0036] As an example, for the translation function, it is necessary to first display the content to be translated in the translation box inside the input method keyboard panel, then translate the content to be translated into the target language content, and then display the target language content in the input box of the application outside the input method keyboard panel. The translation box is the input box inside the input method keyboard panel. When the user starts the translation service, a target input box located inside the input method keyboard panel can be created.
[0037] As another example, for the emoji search function, you need to first put the search word on the screen in the search box inside the input method keyboard panel, then search for emojis based on the search word, and then put the selected emoji on the screen in the input box of the application outside the input method keyboard panel. The search box is the input box inside the input method keyboard panel. When the user starts the emoji search service, a target input box located in the input method keyboard panel can be created.
[0038] It is understandable that the input box is usually not displayed inside the input method keyboard panel, and the information displayed on the screen by the user is usually directly displayed in the system input box outside the input method interface. For example, a local user uses an instant messaging application to interact with a peer user. After the user enters an input string in the input method keyboard panel, several candidate items will be displayed in the input method keyboard panel. After the user clicks on a candidate item, the candidate item is displayed on the screen in the input box in the instant messaging application interface (i.e., the system input box outside the input method interface). In this embodiment, the translation function, emoticon search function, etc. in the input method application have the need to display another independent input box inside the input method keyboard panel. Therefore, when it is detected that the user has started these specific functions, a target input box located in the input method keyboard panel can be created.
[0039] When creating a target input box, you can first use a UIView as a carrier to implement the text box UI style in the input method keyboard panel, then instantiate a UIView, add a subview to the UIView, and thus implement the text box style. The UIView represents a rectangular area on the screen.
[0040] In some optional implementations of the present embodiment, the above-mentioned execution subject can create a target input box located in the input method keyboard panel through a preset input box control (which can be recorded as SGTextFiled) applicable to the above-mentioned input method keyboard panel. The preset input box control can be pre-created based on the system input box control (such as TextFiled) provided by the operating system (such as iOS operating system). The input box control can encapsulate a method for implementing the input box function. The above-mentioned execution subject can first call the preset input box control. Afterwards, the target input box located in the above-mentioned input method keyboard panel can be created through the preset input box control, for example, the target input box is obtained by instantiation.
[0041] In some optional implementations of this embodiment, the input box control (which can be recorded as SGTextFileA) used to carry the target input box can be inherited from the above-mentioned preset input box control (i.e., SGTextFiled), and the preset input box control can be inherited from the system input box control (e.g., TextFiled). On this basis, the preset input box control (i.e., SGTextFiled) can re-implement the text protocol interface to display the same user interface style as the system input box control (i.e., TextFiled), and the preset input box control (i.e., SGTextFiled) can support the text protocol customized by the input method.
[0042] Step 102: Create an input box pointer for manipulating the target input box.
[0043] In this embodiment, the execution subject can create an input box pointer (recorded as SGTextDocumentA) for manipulating the target input box. The pointer can be a set of protocol pointers set in imitation of the system text protocol pointer (such as TextDocumentProxy) of the operating system, and its protocol is consistent with the system, and is used to replace the system pointer. By switching between the system text protocol pointer and the input box pointer, the on-screen operation of switching between the system input box and the target input box in the input method keyboard panel can be realized.
[0044] In some optional implementations of this embodiment, the above-mentioned execution subject can create an input box pointer through a preset text protocol pointer (which can be recorded as SGTextDocumentProxy) applicable to the above-mentioned input method keyboard panel. The preset text protocol pointer can be a pre-set protocol pointer for operating the target input box in the input method keyboard panel, which can be encapsulated with a protocol for use by various services. The above-mentioned execution subject can first call the preset text protocol pointer applicable to the input method keyboard panel; and then create an input box pointer for manipulating the text in the target input box through the preset text protocol pointer, for example, creating an input box pointer (i.e., SGTextDocumentA) by instantiation.
[0045] In some optional implementations of this embodiment, the input box pointer (ie, SGTextDocumentA) may inherit from the preset text protocol pointer (ie, SGTextDocumentProxy), and the preset text protocol pointer (ie, SGTextDocumentProxy) may inherit from the system text protocol pointer (ie, TextDocumentProxy).
[0046] Step 103: Based on the input box pointer, the content input by the user is moved onto the screen to the target input box.
[0047] In this embodiment, after the user triggers a specific function of the input method application and displays the target input box in the input method keyboard interface, the user can perform operations in the input method keyboard interface, such as editing the input string, selecting a candidate, etc. After the above-mentioned execution subject creates an input box pointer for manipulating the target input box, it can, based on the input box pointer, display the content input by the user to the target input box. Here, the content input by the user may include but is not limited to the candidate selected by the user during the input process, etc. The above-mentioned candidate items may include but are not limited to candidate words, candidate expressions, candidate pictures, etc., which are not specifically limited here.
[0048] In practice, after the user triggers a specific function of the input method application, two input boxes can be displayed in the interface, namely the target input box located inside the input method keyboard panel and the system input box located outside the input method keyboard panel. The system input box can be continuously displayed before the user triggers the specific function. When the user inputs content, such as entering a pinyin string and selecting a candidate, the candidate can be preferentially displayed on the screen to the target input box.
[0049] As an example, the specific function is a translation function. After the user inputs "gg", the candidate "just" is selected, and the candidate "just" can be displayed on the screen to the internal input box. In addition, the translation result "just" can also be automatically displayed on the screen to the system input box.
[0050] It should be noted that when the user triggers a specific function of the input method application and inputs content, the input content (such as the clicked candidate item) can also be uploaded to the system input box by default. At the same time, the target input box can display a guiding message "Click here to start translation". When the user clicks the panel input box, the subsequent input content (such as the clicked candidate item) can be uploaded to the target input box, and the translation content corresponding to the target input box can be uploaded to the system input box.
[0051] In some optional implementations of this embodiment, the execution subject may first control the input box pointer to point to the target input box, then transfer the candidate item selected by the user during the input process to the input box pointer, and display the candidate item on the target input box through the input box pointer.
[0052] In some optional implementations of this embodiment, when it is detected that the user triggers a non-specific function of the input method application, the above-mentioned execution subject can put the content input by the user on the screen to the system input box outside the input method keyboard panel based on the system text protocol pointer (such as TextDocumentProxy). Among them, the non-specific function can be an input method function that does not need to display the input box inside the input method keyboard panel, that is, the non-specific function only needs to display the system input box located outside the input method keyboard interface. As an example, unconventional functions may include but are not limited to voice input functions, keyboard switching functions, etc. Therefore, on the one hand, by switching between the system text protocol pointer and the input box pointer, the on-screen operation can be switched between the system input box and the target input box in the input method keyboard panel, so that the business that needs to display the input box inside the input method keyboard panel can conveniently and quickly realize the display and editing of the input box. On the other hand, in the past, to realize the editing in the input method keyboard panel, each business needs to do on-screen logic processing (such as setting the on-screen content to the input box in an attribute manner). This implementation method can realize the trusteeship of the on-screen logic, and the business does not need to make an on-screen state judgment externally, so the relevance between the decoupling business and the keyboard panel is decoupled, reducing the complexity of the business logic.
[0053] Continue to see Figure 2 , which shows a schematic diagram of the text service framework of the input method of the present application. Figure 2 As shown, SGTextFiled is a preset input box control, which can be inherited from the system input box control TextFiled (not shown in the figure). SGTextDocumentProxy is a preset text protocol pointer, which can be inherited from the system text protocol pointer TextDocumentProxy. SGTextFileA is an input box control used to carry the input box in the input method keyboard panel in the example business (such as translation business), which can be inherited from SGTextFiled. SGTextDocumentA is the input box pointer of the above-mentioned example business, which can be inherited from SGTextDocumentProxy. Controller is the above-mentioned example business controller, which is responsible for business logic control.
[0054] After the user triggers the input box function in the keyboard (for example, after starting the translation service), the Controller can mobilize the SGTextFiled control to create an input box control SGTextFileA for carrying the target input box. After that, the Controller interface calls SGTextDocumentProxy to create an input box pointer SGTextDocumentA for manipulating the text in the above target input box, thereby obtaining an instantiated input box and input box pointer. After that, the Controller can point the input box pointer SGTextDocumentA to the input box SGTextFileA, and pass the content to be displayed on the screen to SGTextDocumentA, thereby manipulating SGTextFileA through SGTextDocumentA to realize the display of text on SGTextFileA.
[0055] The method provided by the above-mentioned embodiment of the present application creates a target input box located in the input method keyboard panel when detecting that the user triggers a specific function of the input method application; and then creates an input box pointer for manipulating the target input box; thereby, the content input by the user can be displayed on the screen to the target input box based on the input box pointer. In this way, the display and editing of the input box inside the input method keyboard panel can be supported, and at the same time, the association between the business and the input method keyboard panel is decoupled, which can reduce the complexity of the business logic compared to the method of adding the display logic inside the input method keyboard panel for different businesses respectively.
[0056] Further references Figure 3 As an implementation of the methods shown in the above figures, the present application provides an embodiment of an input device, and the device embodiment is Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0057] like Figure 3 As shown, the input device 300 mentioned above in this embodiment includes: a first creation unit 301, which is configured to create a target input box located in the input method keyboard panel when it is detected that the user triggers a specific function of the input method application; a second creation unit 302, which is configured to create an input box pointer for manipulating the above-mentioned target input box; and a first screen-up unit 303, which is configured to display the content input by the user to the above-mentioned target input box based on the above-mentioned input box pointer.
[0058] In some optional implementations of this embodiment, the above-mentioned first creation unit is further configured to: call a preset input box control applicable to the above-mentioned input method keyboard panel; and create a target input box located in the above-mentioned input method keyboard panel through the above-mentioned preset input box control.
[0059] In some optional implementations of this embodiment, the input box control used to carry the target input box is inherited from the preset input box control.
[0060] In some optional implementations of this embodiment, the above-mentioned second creation unit is further configured to: call a preset text protocol pointer applicable to the above-mentioned input method keyboard panel; and create an input box pointer for manipulating the text in the above-mentioned target input box through the above-mentioned preset text protocol pointer.
[0061] In some optional implementations of this embodiment, the input box pointer is inherited from the preset text protocol pointer.
[0062] In some optional implementations of the present embodiment, the first upper screen unit is further configured to: control the input box pointer to point to the target input box; transfer the candidate items selected by the user during the input process to the input box pointer, and move the candidate items to the target input box through the input box pointer.
[0063] In some optional implementations of this embodiment, the above-mentioned device also includes: a second screen-up unit, which is configured to display the content input by the user to the system input box outside the input method keyboard panel based on the system text protocol pointer when it is detected that the user triggers a non-specific function of the input method application.
[0064] The device provided by the above-mentioned embodiment of the present application creates a target input box located in the input method keyboard panel when detecting that the user triggers a specific function of the input method application; and then creates an input box pointer for manipulating the target input box; thereby, the content input by the user can be displayed on the screen to the target input box based on the input box pointer. In this way, the display and editing of the input box inside the input method keyboard panel can be supported, and at the same time, the association between the business and the input method keyboard panel is decoupled, which can reduce the complexity of the business logic compared to the method of adding the display logic inside the input method keyboard panel for different businesses respectively.
[0065] Figure 4 4 is a block diagram of an input device 400 according to an exemplary embodiment, and the device 400 may be a smart terminal or a server. For example, the device 400 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0066] Reference Figure 4 , the device 400 may include one or more of the following components: a processing component 402 , a memory 404 , a power component 406 , a multimedia component 408 , an audio component 410 , an input / output (I / O) interface 412 , a sensor component 414 , and a communication component 416 .
[0067] The processing component 402 generally controls the overall operation of the device 400, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to complete all or part of the steps of the above-described method. In addition, the processing component 402 may include one or more modules to facilitate interaction between the processing component 402 and other components. For example, the processing component 402 may include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
[0068] The memory 404 is configured to store various types of data to support operations on the device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phone book data, messages, pictures, videos, etc. The memory 404 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0069] The power supply component 406 provides power to the various components of the device 400. The power supply component 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 400.
[0070] The multimedia component 408 includes a screen that provides an output interface between the above-mentioned device 400 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The above-mentioned touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the above-mentioned touch or slide operation. In some embodiments, the multimedia component 408 includes a front camera and / or a rear camera. When the device 400 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0071] The audio component 410 is configured to output and / or input audio signals. For example, the audio component 410 includes a microphone (MIC), and when the device 400 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 404 or sent via the communication component 416. In some embodiments, the audio component 410 also includes a speaker for outputting audio signals.
[0072] I / O interface 412 provides an interface between processing component 402 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0073] The sensor assembly 414 includes one or more sensors for providing various aspects of status assessment for the device 400. For example, the sensor assembly 414 can detect the open / closed state of the device 400, the relative positioning of the components, such as the display and keypad of the device 400, the sensor assembly 414 can also detect the position change of the device 400 or a component of the device 400, the presence or absence of user contact with the device 400, the orientation or acceleration / deceleration of the device 400 and the temperature change of the device 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0074] The communication component 416 is configured to facilitate wired or wireless communication between the device 400 and other devices. The device 400 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0075] In an exemplary embodiment, the apparatus 400 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.
[0076] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 404 including instructions, and the instructions can be executed by a processor 420 of the device 400 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0077] Figure 5 5 is a schematic diagram of the structure of the server in some embodiments of the present application. The server 500 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 522 (for example, one or more processors) and a memory 532, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 542 or data 544. Among them, the memory 532 and the storage medium 530 can be short-term storage or permanent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 522 can be configured to communicate with the storage medium 530 and execute a series of instruction operations in the storage medium 530 on the server 500.
[0078] The server 500 may also include one or more power supplies 526, one or more wired or wireless network interfaces 550, one or more input and output interfaces 558, one or more keyboards 556, and / or one or more operating systems 541, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0079] A non-temporary computer-readable storage medium, when the instructions in the above storage medium are executed by the processor of a device (smart terminal or server), the device can execute an input method, the above method includes: when it is detected that the user triggers a specific function of the input method application, creating a target input box located in the input method keyboard panel; creating an input box pointer for manipulating the target input box; based on the input box pointer, the content input by the user is displayed on the screen to the target input box.
[0080] Optionally, the creating a target input box located in the input method keyboard panel includes: calling a preset input box control applicable to the input method keyboard panel; and creating the target input box located in the input method keyboard panel through the preset input box control.
[0081] Optionally, the input box control used to carry the target input box inherits from the preset input box control, and the preset input box control inherits from the system input box control.
[0082] Optionally, the creating an input box pointer for manipulating the target input box includes: calling a preset text protocol pointer applicable to the input method keyboard panel; and creating an input box pointer for manipulating text in the target input box through the preset text protocol pointer.
[0083] Optionally, the input box pointer is inherited from the preset text protocol pointer, and the preset text protocol pointer is inherited from the system text protocol pointer.
[0084] Optionally, the method of displaying the content input by the user to the target input box based on the input box pointer includes: controlling the input box pointer to point to the target input box; transmitting the candidate items selected by the user during the input process to the input box pointer, and displaying the candidate items to the target input box via the input box pointer.
[0085] Optionally, the device is configured to execute one or more programs including instructions for performing the following operations by one or more processors: when it is detected that a user triggers a non-specific function of the input method application, displaying the user input content on the screen to a system input box outside the input method keyboard panel based on a system text protocol pointer.
[0086] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0087] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
[0088] The above is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
[0089] The above is a detailed introduction to an input method, a device and a device for input provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for a person skilled in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. An input method, characterized in that: The method comprises: When it is detected that a user triggers a specific function of the input method application, a target input box is created in the input method keyboard panel; Creating an input box pointer for manipulating the target input box; Based on the input box pointer, the content input by the user is displayed on the screen to the target input box; The step of creating an input box pointer for manipulating the target input box includes: Calling a preset text protocol pointer applicable to the input method keyboard panel; Creating an input box pointer for manipulating text in the target input box through the preset text protocol pointer; The input box pointer is inherited from the preset text protocol pointer, and the preset text protocol pointer is inherited from the system text protocol pointer; The step of moving the content input by the user to the target input box based on the input box pointer includes: Control the input box pointer to point to the target input box; The candidate items selected by the user during the input process are transmitted to the input box pointer, and the candidate items are displayed on the screen to the target input box through the input box pointer.
2. The method according to claim 1, characterized in that The step of creating a target input box located in the input method keyboard panel includes: Calling a preset input box control applicable to the input method keyboard panel; A target input box located in the input method keyboard panel is created through the preset input box control.
3. The method according to claim 2, characterized in that The input box control for carrying the target input box inherits from the preset input box control, and the preset input box control inherits from the system input box control.
4. The method according to claim 1, characterized in that: The method further comprises: When it is detected that the user triggers a non-specific function of the input method application, the content input by the user is displayed on the screen to a system input box outside the input method keyboard panel based on a system text protocol pointer.
5. An input device, characterized in that: The device comprises: A first creation unit is configured to create a target input box located in the input method keyboard panel when detecting that a user triggers a specific function of the input method application; A second creation unit is configured to create an input box pointer for manipulating the target input box; A first screen-up unit, configured to screen-up the content input by the user to the target input box based on the input box pointer; The second creation unit is configured to: Calling a preset text protocol pointer applicable to the input method keyboard panel; Creating an input box pointer for manipulating text in the target input box through the preset text protocol pointer; The input box pointer is inherited from the preset text protocol pointer, and the preset text protocol pointer is inherited from the system text protocol pointer; The first upper screen unit is configured as follows: Control the input box pointer to point to the target input box; The candidate items selected by the user during the input process are transmitted to the input box pointer, and the candidate items are displayed on the screen to the target input box through the input box pointer.
6. The device according to claim 5, characterized in that The first creation unit is further configured to: Calling a preset input box control applicable to the input method keyboard panel; A target input box located in the input method keyboard panel is created through the preset input box control.
7. The device according to claim 6, characterized in that The input box control used to carry the target input box inherits from the preset input box control.
8. A device for input, characterized in that The invention comprises a memory and one or more programs, wherein the one or more programs are stored in the memory, and when the programs are executed by one or more processors, the steps of any method described in claims 1-4 are implemented.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
