CN109324743A - A kind of method, storage medium and the smart machine of intelligent set keyboard shortcut - Google Patents
A kind of method, storage medium and the smart machine of intelligent set keyboard shortcut Download PDFInfo
- Publication number
- CN109324743A CN109324743A CN201811378067.3A CN201811378067A CN109324743A CN 109324743 A CN109324743 A CN 109324743A CN 201811378067 A CN201811378067 A CN 201811378067A CN 109324743 A CN109324743 A CN 109324743A
- Authority
- CN
- China
- Prior art keywords
- multipad
- keyboard
- shortcut
- virtual key
- monitoring
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/0486—Drag-and-drop
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
Abstract
The invention discloses method, storage medium and the smart machines of a kind of intelligent set keyboard shortcut, wherein, the method includes the steps: real-time monitoring is carried out to the multipad of smart machine, when monitoring multipad described in user's long-pressing, then dummy keyboard corresponding with smart machine physical keyboard is popped up;When monitoring that the multipad is dragged to the virtual key position of the dummy keyboard and discharges the multipad, then physical button corresponding with the virtual key position is set to the shortcut key of the multipad.The present invention only needs to drag the setting that shortcut key can be realized within the scope of multipad to dummy keyboard, easy to operate, brings great advantage to the user.
Description
Technical field
The present invention relates to shortcut key application fields more particularly to a kind of method of intelligent set keyboard shortcut, storage to be situated between
Matter and smart machine.
Background technique
The interaction of Android mobile phone keyboard is divided into two kinds at present, is dummy keyboard and physical keyboard respectively, wherein physical keyboard
Other than for keyboard entry function, the use of shortcut key is also used as under non-input state.
Current existing physical keyboard setting shortcut key requires user and enters mobile phone set interface, in setting shortcut key dish
Dan Zhong clicks some key, then selects application therefrom to realize the function of setting shortcut key, substantially needs ten times or so clicks
Operation could complete the setting of a shortcut key, and this set mode of operation is complicated, and the place being arranged is difficult to find, and give user
Use bring greater inconvenience.
Therefore, the existing technology needs to be improved and developed.
Summary of the invention
In view of above-mentioned deficiencies of the prior art, the purpose of the present invention is to provide a kind of sides of intelligent set keyboard shortcut
Method, storage medium and smart machine, it is intended to which the setting up procedure for solving existing intelligent equipment quick key is complicated, brings use to user
Inconvenient problem.
Technical scheme is as follows:
A kind of method of intelligent set keyboard shortcut, wherein comprising steps of
Real-time monitoring is carried out to the multipad of smart machine, when monitoring multipad described in user's long-pressing,
Then pop up dummy keyboard corresponding with smart machine physical keyboard;
It is answered when monitoring that the multipad is dragged to the virtual key position of the dummy keyboard and discharges the desktop
When with program, then physical button corresponding with the virtual key position is set to the shortcut key of the multipad.
The method of the intelligent set keyboard shortcut, wherein the physical button of the physical keyboard and the virtual key
The virtual key of disk corresponds.
The method of the intelligent set keyboard shortcut, wherein described to monitor desktop application journey described in user's long-pressing
When sequence, then pop up dummy keyboard corresponding with smart machine physical keyboard the step of further include:
When monitoring multipad described in user's long-pressing, then obtain the multipad applies packet name.
The method of the intelligent set keyboard shortcut, wherein described to monitor that the multipad is dragged to
The virtual key position of the dummy keyboard and when discharging the multipad, then will be corresponding with the virtual key position
Physical button be set as the multipad shortcut key comprising steps of
It is answered when monitoring that the multipad is dragged to the virtual key position of the dummy keyboard and discharges the desktop
When with program, then the dummy keyboard is hidden;
Corresponding virtual key position when discharging the multipad is obtained, is obtained and is corresponded to according to the virtual key position
Physical button and set the physical button to the shortcut key of the multipad.
The method of the intelligent set keyboard shortcut, wherein the physical button and virtual key include English words
Female key, symbol keys and digital keys.
The method of the intelligent set keyboard shortcut, wherein described to monitor that the multipad is dragged to
The virtual key position of the dummy keyboard and when discharging the multipad, then will be corresponding with the virtual key position
Physical button be set as further comprising the steps of: after the shortcut key of the multipad
When monitoring that user presses physical button under non-textual input state, judge whether the physical button of current press sets
It is set to shortcut key;
When the physical button of current press is set as shortcut key, then start multipad corresponding with the shortcut key.
A kind of storage medium, wherein be stored with a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
Real-time monitoring is carried out to the multipad of smart machine, when monitoring multipad described in user's long-pressing,
Then pop up dummy keyboard corresponding with smart machine physical keyboard;
It is answered when monitoring that the multipad is dragged to the virtual key position of the dummy keyboard and discharges the desktop
When with program, then physical button corresponding with the virtual key position is set to the shortcut key of the multipad.
The storage medium, wherein be stored with a plurality of instruction, described instruction is suitable for being loaded by processor and specifically being held
Row:
When monitoring multipad described in user's long-pressing, then obtain the multipad applies packet name;
It is answered when monitoring that the multipad is dragged to the virtual key position of the dummy keyboard and discharges the desktop
When with program, then the dummy keyboard is hidden;
Corresponding virtual key position when discharging the multipad is obtained, is obtained and is corresponded to according to the virtual key position
Physical button and set the physical button to the shortcut key of the multipad.
A kind of smart machine, wherein including processor, be adapted for carrying out each instruction;And storage medium, it is suitable for storing a plurality of
Instruction, described instruction are suitable for the step of being loaded by processor and executing the method for intelligent set keyboard shortcut of the present invention.
The smart machine, wherein the smart machine is mobile phone or tablet computer.
The utility model has the advantages that passing through the table to smart machine the present invention provides a kind of method of intelligent set keyboard shortcut
Face application program carries out real-time monitoring, and when monitoring multipad described in user's long-pressing, then pop-up and smart machine are real
The corresponding dummy keyboard of body keyboard;When monitoring that the multipad is dragged to the virtual key position of the dummy keyboard
When setting and discharging the multipad, then the desktop is set by physical button corresponding with the virtual key position
The shortcut key of application program.The present invention, which only needs to drag, can realize shortcut key within the scope of multipad to dummy keyboard
Setting, it is easy to operate, bring great advantage to the user.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the method preferred embodiment of intelligent set keyboard shortcut of the present invention.
Fig. 2 is a kind of structural block diagram of smart machine preferred embodiment of the present invention.
Specific embodiment
The present invention provides method, storage medium and the smart machines of a kind of intelligent set keyboard shortcut, to make this hair
Bright purpose, technical solution and effect are clearer, clear, and the present invention is described in more detail below.It should be appreciated that herein
Described specific embodiment is only used to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of the method preferred embodiment of intelligent set keyboard shortcut of the present invention,
Wherein, as shown, the described method comprises the following steps:
S10, real-time monitoring is carried out to the multipad of smart machine, when monitoring multipad described in user's long-pressing
When, then pop up dummy keyboard corresponding with smart machine physical keyboard;
S20, when monitoring that the multipad is dragged to the virtual key position of the dummy keyboard and discharges the table
When the application program of face, then the quick of the multipad is set by physical button corresponding with the virtual key position
Key.
The method provided through the invention, it is only necessary to which dragging within the scope of multipad to dummy keyboard can realize
The setting of shortcut key, it is easy to operate, it brings great advantage to the user.After shortcut key is provided with, user need to only be pressed
The physical button of pressing entity keyboard can directly initiate the corresponding multipad of the physical button.
In a preferred embodiment, when monitoring multipad described in user's long-pressing, then described in acquisition
Multipad applies packet name, and pops up dummy keyboard corresponding with smart machine physical keyboard.Preferably, to avoid
Maloperation simultaneously improves operating efficiency, and it is 3-8s that the long-pressing, which acts preferred compressing time,.
Specifically, after multipad receives long-pressing instruction, then the application packet of the multipad is obtained
Name, code are as follows:
Final private AdapterView.OnItemLongClickListener mOnLongClickListener
= new AdapterView.OnItemLongClickListener() {
public boolean onItemLongClick(AdapterView parent, View v, int
position, long id) {
parent.startDrag(null, new DragShadowBuilder(v), v, 0);
AppModel app = (AppModel) getGridAdapter().getItem
(position);
if (app != null) {
HomeScreen.strDraggingApp = app.getApplicationPackageName
();
HomeScreen.appIcon = app.getIcon();
}
final HomeScreen activity = (HomeScreen)getActivity();
activity.onItemLongClick();
return true;
}
}。
Specifically, it after multipad receives long-pressing instruction, then pops up opposite with smart machine physical keyboard
The dummy keyboard answered, code are as follows:
public void onItemLongClick(){
if(showPopup == false) {
mPopupWindow.showAtLocation(ghost, Gravity.BOTTOM, 0, 0); //
Show dummy keyboard
showPopup = true;
}
}。
In a preferred embodiment, when monitoring that the multipad is dragged to the void of the dummy keyboard
When intending key position and discharging the multipad, then the dummy keyboard is hidden;It obtains and discharges the desktop application journey
Corresponding virtual key position when sequence obtains corresponding physical button according to the virtual key position and by the physical button
It is set as the shortcut key of the multipad.
Specifically, after popping up dummy keyboard, then the onDrap event of multipad is monitored in real time, when
It, then will be corresponding with the virtual key position when monitoring the multipad and dragging within the scope of the dummy keyboard
Physical button is set as the shortcut key of the multipad, and hides the dummy keyboard.Realize the code of the above process
It is specific as follows:
ghost.findViewById(R.id.placeholderView).setOnDragListener(new
View.OnDragListener() {
@Override
public boolean onDrag(View v, DragEvent event) {
if (event.getAction() == DragEvent.ACTION_DROP) {
mPopupWindow.dismiss();// hide keyboard
showPopup = false;
// send the shortcut key that message sets corresponding key to the application
Message message = Message.obtain();
message.arg1 = (int)event.getX();
message.arg2 = (int)event.getY();
messageHandler.sendMessage(message);
} return true;
}
})。
In a preferred embodiment, when monitoring that user presses physical button under non-textual input state,
Judge whether the physical button of current press is set as shortcut key;When the physical button of current press is set as shortcut key, then
Start multipad corresponding with the shortcut key.Realize that the code of the above process is specific as follows:
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
String str = myMap.get("" + keyCode);
if (str != null){
if(!str.isEmpty()) { startActivity(getPackageManager()
.getLaunchIntentForPackage(str));
}
}
return super.onKeyDown(keyCode, event);
}。
In a preferred embodiment, the virtual key of the physical button of the physical keyboard and the dummy keyboard
It corresponds.Preferably, the physical button and virtual key include that English alphabet key, symbol keys and number are pressed
Key.
Further, the present invention also provides a kind of storage mediums, wherein be stored with a plurality of instruction, described instruction be suitable for by
The step of processor loads and executes the method for intelligent set keyboard shortcut of the present invention.
In a preferred embodiment, the storage medium is stored with a plurality of instruction, and described instruction is suitable for by handling
Device is loaded and is executed:
Real-time monitoring is carried out to the multipad of smart machine, when monitoring multipad described in user's long-pressing,
Then pop up dummy keyboard corresponding with smart machine physical keyboard;
It is answered when monitoring that the multipad is dragged to the virtual key position of the dummy keyboard and discharges the desktop
When with program, then physical button corresponding with the virtual key position is set to the shortcut key of the multipad.
In a kind of preferred embodiment, the storage medium is stored with a plurality of instruction, described instruction be suitable for by
Device is managed to load and also execute:
When monitoring multipad described in user's long-pressing, then obtain the multipad applies packet name;
It is answered when monitoring that the multipad is dragged to the virtual key position of the dummy keyboard and discharges the desktop
When with program, then the dummy keyboard is hidden;
Corresponding virtual key position when discharging the multipad is obtained, is obtained and is corresponded to according to the virtual key position
Physical button and set the physical button to the shortcut key of the multipad.
Further, the present invention also provides a kind of smart machines, wherein as shown in Fig. 2, including processor 10, is suitable for
Realize each instruction;And storage medium 20, it is suitable for storing a plurality of instruction, on described instruction is suitable for being loaded and being executed by processor 10
The step of stating the method for any one intelligent set keyboard shortcut.
Preferably, the smart machine is selected from one of mobile phone or tablet computer.
Specifically, the processor 10 can be a central processing unit in some embodiments, microprocessor or other
Data processing chip, for running the program code stored in the storage medium 20 or processing data.
The storage medium 20 can be the internal storage unit of described device in some embodiments, such as the device
Hard disk or memory.The storage medium 20 is also possible to the external memory of described device, such as institute in further embodiments
State the plug-in type hard disk being equipped on device, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..
Further, the storage medium 20 can also both include the internal storage unit of described device or deposit including outside
Storage device.The storage medium 20 is for storing the application software and Various types of data for being installed on described device.The storage medium
20 can be also used for temporarily storing the data that has exported or will export.
In conclusion passing through the table to smart machine the present invention provides a kind of method of intelligent set keyboard shortcut
Face application program carries out real-time monitoring, and when monitoring multipad described in user's long-pressing, then pop-up and smart machine are real
The corresponding dummy keyboard of body keyboard;When monitoring that the multipad is dragged to the virtual key position of the dummy keyboard
When setting and discharging the multipad, then the desktop is set by physical button corresponding with the virtual key position
The shortcut key of application program.The present invention, which only needs to drag, can realize shortcut key within the scope of multipad to dummy keyboard
Setting, it is easy to operate, bring great advantage to the user.
It should be understood that the application of the present invention is not limited to the above for those of ordinary skills can
With improvement or transformation based on the above description, all these modifications and variations all should belong to the guarantor of appended claims of the present invention
Protect range.
Claims (10)
1. a kind of method of intelligent set keyboard shortcut, which is characterized in that comprising steps of
Real-time monitoring is carried out to the multipad of smart machine, when monitoring multipad described in user's long-pressing,
Then pop up dummy keyboard corresponding with smart machine physical keyboard;
It is answered when monitoring that the multipad is dragged to the virtual key position of the dummy keyboard and discharges the desktop
When with program, then physical button corresponding with the virtual key position is set to the shortcut key of the multipad.
2. the method for intelligent set keyboard shortcut according to claim 1, which is characterized in that the entity of the physical keyboard
The virtual key of key and the dummy keyboard corresponds.
3. the method for intelligent set keyboard shortcut according to claim 2, which is characterized in that described to monitor to use the head of a household
When by the multipad, then pop up dummy keyboard corresponding with smart machine physical keyboard the step of further include:
When monitoring multipad described in user's long-pressing, then obtain the multipad applies packet name.
4. the method for intelligent set keyboard shortcut according to claim 3, which is characterized in that described to monitor the table
When face application program is dragged to the virtual key position of the dummy keyboard and discharges the multipad, then will with it is described
The corresponding physical button of virtual key position be set as the shortcut key of the multipad comprising steps of
It is answered when monitoring that the multipad is dragged to the virtual key position of the dummy keyboard and discharges the desktop
When with program, then the dummy keyboard is hidden;
Corresponding virtual key position when discharging the multipad is obtained, is obtained and is corresponded to according to the virtual key position
Physical button and set the physical button to the shortcut key of the multipad.
5. the method for intelligent set keyboard shortcut according to claim 2, which is characterized in that the physical button and virtual
Key includes English alphabet key, symbol keys and digital keys.
6. the method for intelligent set keyboard shortcut according to claim 1, which is characterized in that described to monitor the table
When face application program is dragged to the virtual key position of the dummy keyboard and discharges the multipad, then will with it is described
The corresponding physical button of virtual key position is set as further comprising the steps of: after the shortcut key of the multipad
When monitoring that user presses physical button under non-textual input state, judge whether the physical button of current press sets
It is set to shortcut key;
When the physical button of current press is set as shortcut key, then start multipad corresponding with the shortcut key.
7. a kind of storage medium, which is characterized in that be stored with a plurality of instruction, described instruction is suitable for being loaded and being executed by processor:
Real-time monitoring is carried out to the multipad of smart machine, when monitoring multipad described in user's long-pressing,
Then pop up dummy keyboard corresponding with smart machine physical keyboard;
It is answered when monitoring that the multipad is dragged to the virtual key position of the dummy keyboard and discharges the desktop
When with program, then physical button corresponding with the virtual key position is set to the shortcut key of the multipad.
8. storage medium according to claim 7, which is characterized in that be stored with a plurality of instruction, described instruction be suitable for by
Device is managed to load and specifically execute:
When monitoring multipad described in user's long-pressing, then obtain the multipad applies packet name;
It is answered when monitoring that the multipad is dragged to the virtual key position of the dummy keyboard and discharges the desktop
When with program, then the dummy keyboard is hidden;
Corresponding virtual key position when discharging the multipad is obtained, is obtained and is corresponded to according to the virtual key position
Physical button and set the physical button to the shortcut key of the multipad.
9. a kind of smart machine, which is characterized in that including processor, be adapted for carrying out each instruction;And storage medium, it is suitable for storage
A plurality of instruction, described instruction are suitable for being loaded as processor and executing intelligent set key described in the claims 1-6 any one
The step of method of disk shortcut key.
10. smart machine according to claim 9, which is characterized in that the smart machine is mobile phone or tablet computer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811378067.3A CN109324743A (en) | 2018-11-19 | 2018-11-19 | A kind of method, storage medium and the smart machine of intelligent set keyboard shortcut |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811378067.3A CN109324743A (en) | 2018-11-19 | 2018-11-19 | A kind of method, storage medium and the smart machine of intelligent set keyboard shortcut |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109324743A true CN109324743A (en) | 2019-02-12 |
Family
ID=65257732
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811378067.3A Pending CN109324743A (en) | 2018-11-19 | 2018-11-19 | A kind of method, storage medium and the smart machine of intelligent set keyboard shortcut |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109324743A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103729065A (en) * | 2013-12-17 | 2014-04-16 | 深圳市慧为智能科技有限公司 | System and method for mapping touch operations to entity keys |
CN103885668A (en) * | 2012-12-20 | 2014-06-25 | 航天信息股份有限公司 | Method and device for implementing custom shortcut keys on android platform |
US20140181746A1 (en) * | 2012-12-26 | 2014-06-26 | Giga-Byte Technology Co., Ltd. | Electrionic device with shortcut function and control method thereof |
US20150058776A1 (en) * | 2011-11-11 | 2015-02-26 | Qualcomm Incorporated | Providing keyboard shortcuts mapped to a keyboard |
CN105224168A (en) * | 2015-09-02 | 2016-01-06 | 小米科技有限责任公司 | The display packing of application icon, device and mobile device |
CN105573748A (en) * | 2015-12-11 | 2016-05-11 | 北京元心科技有限公司 | Shortcut key customization method and intelligent terminal |
-
2018
- 2018-11-19 CN CN201811378067.3A patent/CN109324743A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150058776A1 (en) * | 2011-11-11 | 2015-02-26 | Qualcomm Incorporated | Providing keyboard shortcuts mapped to a keyboard |
CN103885668A (en) * | 2012-12-20 | 2014-06-25 | 航天信息股份有限公司 | Method and device for implementing custom shortcut keys on android platform |
US20140181746A1 (en) * | 2012-12-26 | 2014-06-26 | Giga-Byte Technology Co., Ltd. | Electrionic device with shortcut function and control method thereof |
CN103729065A (en) * | 2013-12-17 | 2014-04-16 | 深圳市慧为智能科技有限公司 | System and method for mapping touch operations to entity keys |
CN105224168A (en) * | 2015-09-02 | 2016-01-06 | 小米科技有限责任公司 | The display packing of application icon, device and mobile device |
CN105573748A (en) * | 2015-12-11 | 2016-05-11 | 北京元心科技有限公司 | Shortcut key customization method and intelligent terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104679388B (en) | The method and its mobile terminal of application program are opened by icon duplicate | |
CN105159530B (en) | A kind of the display object switching method and device of application | |
CN107193598A (en) | One kind application startup method, mobile terminal and computer-readable recording medium | |
CN104423789B (en) | A kind of information processing method and electronic equipment | |
JP2010532522A5 (en) | ||
CN107733984A (en) | A kind of method, terminal and computer-readable recording medium for pushing screen locking information | |
CN109118160B (en) | Information sharing method, device, terminal equipment and medium | |
CN107925749A (en) | Method and apparatus for the resolution ratio for adjusting electronic equipment | |
CN107844728A (en) | Identify method and device, computer installation and the computer-readable recording medium of Quick Response Code | |
CN104679493B (en) | A kind of improved method of the event processing mechanism of procedure | |
CN109471626A (en) | Page logic structure, page generation method, page data processing method and device | |
CN107368255B (en) | Unlocking method, mobile terminal and computer readable storage medium | |
CN105959403A (en) | Wallpaper recommendation method, server and mobile terminal | |
CN110908837A (en) | Application program exception handling method and device, electronic equipment and storage medium | |
CN107765948A (en) | Application control method, terminal, computer installation and storage medium | |
CN106201295A (en) | A kind of message clone method and device and intelligent terminal | |
CN109324743A (en) | A kind of method, storage medium and the smart machine of intelligent set keyboard shortcut | |
EP3635563A1 (en) | Application analysis with flexible post-processing | |
CN105607913B (en) | The operation processing method and device of interconnecting application | |
CN110502894A (en) | Recognition methods, equipment and the system of operation behavior | |
CN107613090A (en) | A kind of recording method, mobile terminal and storage device for reminding item | |
CN103902186A (en) | Method for decomposing folder in desktop application | |
CN106874438A (en) | A kind of desktop folder merging method and system | |
CN106325709A (en) | Method and device for capturing contents on screen | |
CN109597721A (en) | A kind of audio data collecting method, apparatus, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190212 |