<p>ASP.NET 2.0 web application, how to implement shortcut key combination of <kbd>CTRL + Letter</kbd>, preferably through JavaScript, to make web application ergonomically better? How to capture multiple-key keyboard events through JavaScript?</p>

[{'answer_id': 64879, 'author': 'dawnerd', 'author_id': 69503, 'author_profile': 'https://Stackoverflow.com/users/69503', 'pm_score': 2, 'selected': False, 'text': '<p>Javascript has support for <kbd>ctrl</kbd>+<kbd>alt</kbd>+<kbd>shift</kbd> keys. I assume you can figure out the rest. <a href="http://www.javascripter.net/faq/ctrl_alt.htm" rel="nofollow noreferrer">Link</a>.</p>\n'}, {'answer_id': 65212, 'author': 'nickf', 'author_id': 9021, 'author_profile': 'https://Stackoverflow.com/users/9021', 'pm_score': 3, 'selected': False, 'text': '<p>Your event listener function, gets passed an Event object. That has a lot of useful information on it, including the properties "altKey", "ctrlKey", "shiftKey" and "metaKey". If any of the modifier keys are being held down when that event fires, the corresponding property is set to true.</p>\n\n<p>This applies to keyboard as well as mouse events (onclick, etc). Note that if you have a onkeydown event listener, the modifier key itself will fire the event.</p>\n\n<pre><code>window.onkeyup = function(e) {\n  if (e.altKey) alert("Alt pressed");\n  if (e.shiftKey) alert("Shift pressed");\n}\n</code></pre>\n\n<p>This tested on Firefox 3, Windows XP.</p>\n'}, {'answer_id': 65528, 'author': 'gizmo', 'author_id': 9396, 'author_profile': 'https://Stackoverflow.com/users/9396', 'pm_score': -1, 'selected': False, 'text': '<p>I know this is not answering the orginal question, but here is my advice: Don\'t Use Key Combination Shortcuts In A Web Application!</p>\n\n<p>Why? Because it might break de the usability, instead of increasing it. While it\'s generally accepted that "one-key shortcut" are not used in common browsers (Opera remove it as default from its last major version), you cannot figure out what are, nor what will be, the key combination shortcuts used by various browser.</p>\n\n<p>Moreover, if your visitors use a higly customisable browser, such as Firefox or Opera, There is a high risk that they have either configure their own shortcuts or use additional plug-ins that define some additional ones.</p>\n\n<p>Keep in mind that web applications are browser dependend and that you should NEVER assumes that if it works on your favorite-tweak-most-powerfull-browser, it will react the same way on your friend\'s one.</p>\n'}, {'answer_id': 235126, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 3, 'selected': False, 'text': '<p>The short answer is that you use Javascript to capture a <strong>keydown</strong> event and use that event to fire off a function.\nRelevant articles:</p>\n\n<ul>\n<li><a href="http://www.openjs.com/scripts/events/keyboard_shortcuts/" rel="noreferrer">http://www.openjs.com/scripts/events/keyboard_shortcuts/</a></li>\n<li><a href="http://udayms.wordpress.com/2006/03/17/ajax-key-disabling-using-javascript/" rel="noreferrer">http://udayms.wordpress.com/2006/03/17/ajax-key-disabling-using-javascript/</a></li>\n<li><a href="http://protocolsofmatrix.blogspot.com/2007/09/javascript-keycode-reference-table-for.html" rel="noreferrer">http://protocolsofmatrix.blogspot.com/2007/09/javascript-keycode-reference-table-for.html</a></li>\n<li><a href="http://www.quirksmode.org/js/keys.html" rel="noreferrer">http://www.quirksmode.org/js/keys.html</a></li>\n</ul>\n\n<p>If you\'re using the <a href="http://jquery.com/" rel="noreferrer">jQuery library</a>, I\'d suggest you look at the <a href="http://plugins.jquery.com/project/hotkeys" rel="noreferrer">HotKeys plugin</a> for a cross-browser solution.</p>\n\n<blockquote>\n  <blockquote>\n    <p>I know this is not answering the orginal question, but here is my advice: Don\'t Use Key Combination Shortcuts In A Web Application!</p>\n    \n    <p>Why? Because it might break de the usability, instead of increasing it. While it\'s generally accepted that "one-key shortcut" are not used in common browsers (Opera remove it as default from its last major version), you cannot figure out what are, nor what will be, the key combination shortcuts used by various browser.</p>\n  </blockquote>\n</blockquote>\n\n<p>Gizmo makes a good point. There\'s some information about commonly-used accesskey assignments at <a href="http://www.clagnut.com/blog/193/" rel="noreferrer">http://www.clagnut.com/blog/193/</a>. </p>\n\n<p>If you do change the accesskeys, here are some articles with good suggestions for how to do it well:</p>\n\n<ul>\n<li><a href="http://www.alistapart.com/articles/accesskeys/" rel="noreferrer">Accesskeys: Unlocking Hidden Navigation</a></li>\n<li><a href="http://www.cs.tut.fi/~jkorpela/forms/accesskey.html" rel="noreferrer">Using accesskey attribute in HTML forms and links </a></li>\n</ul>\n\n<p>And you may find this page of <a href="http://www.accessfirefox.org/Firefox_Keyboard_and_Mouse_Shortcuts.html" rel="noreferrer">Firefox\'s default Keyboard and Mouse Shortcuts</a> useful (<a href="http://lesliefranke.com/files/reference/firefoxcheatsheet.html" rel="noreferrer">Another version</a> of same information). Keyboard shortcuts for <a href="http://www.keyxl.com/aaacd98/28/Microsoft-Internet-Explorer-7-Browser-keyboard-shortcuts.htm" rel="noreferrer">Internet Explorer 7</a> and <a href="http://www.keyxl.com/aaa29c1/29/Microsoft-Internet-Explorer-6-Browser-keyboard-shortcuts.htm" rel="noreferrer">Internet Explorer 6</a>. Keyboard shortcuts <a href="http://www.keyxl.com/aaade74/97/Opera-web-browser-keyboard-shortcuts.htm" rel="noreferrer">for Opera</a> <a href="http://www.keyxl.com/aaa8ceb/93/Apple-Safari-web-browser-keyboard-shortcuts.htm" rel="noreferrer">and Safari</a>.</p>\n\n<p>You\'re more likely to run into problems with <a href="http://www.keyxl.com/aaadc6c/406/jaws-keyboard-shortcuts.htm" rel="noreferrer">JAWS</a> or other screen readers that add more keyboard shortcuts.</p>\n'}]
['https://Stackoverflow.com/questions/64820', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/8832/']