(function () {return false ;}); // press enter in the text box and Press ESC to operate inputObj. keyup (function (event) {var keycode = event. which; // press enter if (keycode = 13) {var encode (inputtext) ;}// escif(keycode=0000271_effectdobj.html (txt );}});});});
In the $ function, $ ("tbody tr") can be used to
. You can use the mouse and keyboard arrow keys to select words from the candidate word box.The most important thing is to start a new smart prompt and use the mouse and keyboard to operate the corresponding words (the index.html page in the source code) to implement the following functions:1. Monitor the letter key and number key in real time, and press it to send ajax requests (you can also set the delay sending request, which is included in the source code). Also, monitor keys such as spaces,
Before using AppleScript, there are keyboard maestro, the previous time with mechanical keyboard, with open-source Karabiner reset mechanical keyboard keys.Today because online copy of the key F4 want to change to launchpad, so on the Internet search data search, the results found that the goods set shortcut keys, compared to the above two goods more convenient no need to write anything workflowDirectly on the code:XML version= "1.0"?>Root> Devicevendordef> VendorName>Cherry_keybordVen
Feel this dropdown box has a little to meet the aesthetic needs,
This is the point out of the effect, wrote the keyboard key, enter, ESC and other events, and based on the bottom of the page to determine whether to show up
Got a linkage today, and put some code on it.
Effect preview:
The following code resolves the IE6 compatibility issue
Copy Code code as follows:
$containerDivText. MouseDown (function () {
SetTimeout (
fun
: SPACEBAR, ESC, TAB, SHIFT + TAB
You can cancel all keys that fire the onkeydown event in HTML Applications, including most accelerator keys, such as ALT + F4.
In Internet Explorer 4.0, you cannot cancel the onkeydown event, but you can use the onkeypress event to cancel keyboard events.
You can press the two together as follows:
The Code is as follows:
If (window. event. shiftKey event. keyCode = x
contents of the current text boxvar NewText = Input_blur.val ();Td.html (NewText);});Responding to keyboard eventsInput.keyup (function (event) {Get key valuevar keyevent = Event | | window.event;var key = Keyevent.keycode;Get current Objectvar Input_blur = $ (this);Switch (key){Case 13://Press ENTER to save the contents of the current text boxvar NewText = Input_blur.val ();Td.html (NewText);Break
Case 27://Press ESC to cancel the change an
() {
return false;
});
Work with the return and ESC keys on a text box
Inputobj.keyup (function (event) {
Gets the key value of the keyboard that is currently pressed
var keycode = Event.which;
Handling of carriage returns
if (keycode==13) {
Get the contents of the current text box
var Inputtext = $ (this). Val ();
Modify the contents of the TD to the
Document directory
Attribute
Mouseup
Basic Interaction
Event
When the # link on the box in the example is in the active State (whether using a tab and then clicking enter or clicking with the mouse), this element can be dragged by the direction key. Then click enter or Esc release. (You can change these keys at will. I'm not sure what the release key should be set, so both enter and Esc can be)Use
There are still a lot of shortcut keys in daily use, such as pasting Ctrl + V and copying Ctrl + C. Using the shortcut keys can improve our work efficiency, especially when we are familiar with an operation, it is very convenient and convenient to use it again. For heavy users who use the keyboard,
The keyboard is always faster than the mouse.
This article mainly mentions setting tabindex and JS combination shortcut keys using JS methods.
1) tabindex:
Is to use the tab to easily control
Vb.net captures keys pressed on the keyboard on the form rather than the textbox Control
I 've been struggling with how to implement this problem. Today I accidentally discovered the keypriview attribute on the form.After searching for relevant information, find out that it is used to capture the keys pressed on the keyboard of the form.
Authorization/ydLUx + HLycq1z9bV4rj2uabE3KGjPC9wPg0KPHA + authorization + DQo8cHJlIGNsYXNzPQ = "brush: java;">
Private Sub form_keypress (sender As Objec
This article is mainly on the JS screen button effect and change the key effect of the sample code is carried out, the need for friends can come to the reference, I hope to help you. function keys f1-f2:112-123 nbsp; a-b:65-90 nbsp; number keys: 0-9:48-57 nbsp; esc:27 nbsp; BACKSPACE: 8 nbsp; return: nbsp; Shift:16;ctrl:17;al t:18 nbsp; Spaces: nbsp; insert:45;delete:46 nbsp; Code is as follows: function Document.onkeydown () {nbsp; nbsp; nbsp; nbsp
.
Otherwise, a new window is created.
I just didn't notice it, and it took a lot of time when the Web was full screen.
Six. Specific business functions
6.1 Open a Full-screen window
window.open ("http://google.com/", "New Open Googlewin", "Fullscreen=1")
6.2 Make this page full screen
Solution: First open a Full-screen target window, and then close this window.
Code:
var url=document.location.href; Get the property name of this windowNewwin=window.open (URL, ', ' fullscreen=1,scrollbars=0 ');w
Background:(1) on my notebook G450, Page_up/page_down keys and home/end on the same key, you need to hold down the FN key at the same time to knock out Home/end(2) The habit of using vim of the comrades have this feeling, the ESC is too far away, so, why not put caps and ESC off a bit?Solve:Page_up/page_down and Home/end Interchange
Need to know the keycode
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.