keyboard-shortcuts

Autohotkey: Remap Win key - when pressed alone

﹥>﹥吖頭↗ 提交于 2019-12-24 04:19:11
问题 Because of an insane laptop keyboard layout and the inability to map Fn-combinations I want to do a few remappings. I would like to use the LWin key as modifier (such as LWin+Right ==> End, etc.). It works just fine. However, I want to stop LWin, when pressed and released alone, to bring up the Windows menu (b/c I sometimes press the modifier but then decide not to complete the action) and I still want to be able to access the Windows menu fairly easily, say via LAlt+LWin. (Obviously LWin

Setup a shortcut to replace easily selected strings in VIM

六眼飞鱼酱① 提交于 2019-12-24 02:57:09
问题 I have a lot of php/html files with many strings that should be internationalized with gettext. Therefore, I have to go through each file, spot the "message" strings and replace each one by <?= _("<my string>") ?> I use vim and would like to setup a shortcut (map) to do it easily in insert mode (With Ctrl R for instance). Do you know how to achieve that ? 回答1: I would use Tim Pope's wonderful surround plugin to accomplish this. Add the following to your ~/.vim/after/ftplugin/php.vim file: let

How to disable 'shift'+'alt' keyboard shortcut in Notepad++

a 夏天 提交于 2019-12-24 02:39:08
问题 The shortcut Shift + Alt changes the keyboard configuration. How can I disable this shortcut? I searched for a shortcuts map, but I could not find any. 回答1: That must be a Windows IME shortcut, it has probably nothing to do with Notepad++. If you see the language bar in the Windows taskbar right click on it, click Settings and under Key settings or Advanced key settings (depending on the Windows version) you'll find this shortcut and you'll be able to change/remove it. 来源: https:/

Eclipse terminate shotcut

寵の児 提交于 2019-12-24 02:11:13
问题 I am familiar with What is the short cut in eclipse to terminate debugging/running?. But nothing is working for me. I wish to be able to terminate a running program in the Java perspective in the same manner I able to do so on the Debug perspective with CTRL + F2 . If one could provide a specific details of how to achieve it, It will be really great! UPDATE To clear any doubts, Assume a toy example when all we have is as following: public class ToyExample { public static void main(String[]

Keyboard friendly CSS menus

孤街浪徒 提交于 2019-12-24 02:10:41
问题 My Question is a sequel to this question Keyboard accessible web dropdown menus? While the above questions says that We figured out how to show the menu with a keyboard shortcut, but I'm not sure how to select one of the entries I have figured out how to select single menu items using accesskeys(and by underlining the key letter), but I do not know how to pop up a menu on keypress. The menu is a XHTML/CSS only menu, XHTML being <ul> <li>Menu 1 <ul> <li>Item 1</li> <li>Item 2</li> <li>Item 3<

How do I program a double key press to make a non-modifier key behave like a modifier key within my program?

折月煮酒 提交于 2019-12-24 01:17:53
问题 I am writing a typing program that includes many more characters than are available on a standard keyboard. In order to achieve this I need to transform some of the alphabet keys into modifier keys CTRL + A . For example f + j would output a . Typing f then j is slow for the user, I need them to be able to press f and j at the same time and receive one output. It's fine (preferable even) if some of the keyboard's normal functionality is stopped while the program is running. I have looked into

How to restore default keybindings (Ctrl+A, Ctrl+C, etc) for widgets in SWT?

给你一囗甜甜゛ 提交于 2019-12-24 00:59:39
问题 When I edit a text field and press Ctrl + A , then instead of selecting all text in the field, the main menu's handler for Ctrl + A is called. How to restore the default behaviour, without losing the Ctrl + A accelerator in menu? 回答1: Ctrl + A doesn't do anything on my WinXP workstation using the following snippet. So there is no "default behaviour": import org.eclipse.swt.SWT; import org.eclipse.swt.widgets.*; public class Snippet22 { public static void main( String[] args ) { Display

Vanilla JavaScript: Disabling a given preexisting key-combo in a webpage

半腔热情 提交于 2019-12-24 00:57:52
问题 In this random English-Wikipedia edit page one can add some content (say "test"), then saving it by the preexisting key-combo of Alt+Shift+S . I desire to prevent this behavior specifically (without removing the save button with document.querySelector("#wpSave").remove(); ). I tried the following code that failed: // ==UserScript== // @name wiki // @match https://*.wikipedia.org/* // ==/UserScript== document.addEventListener("DOMContentLoaded", ()=>{ document.addEventListener('keypress',

Why does pressing Ctrl+“+” produce a beep in a TextBox?

白昼怎懂夜的黑 提交于 2019-12-23 19:18:53
问题 I am Working with C# and Windows Forms and want to use Ctrl+"Oemplus" as a function key for my application. I use a German keyboard and this key is located 2 keys right of the letter P (that ist then "+"). Whenever I press this key in combination with Ctrl and the focus is on a TextBox I get a beep. This also happens when I switch to an US keyboard layout (still using my German keyboard ). This is then the ] key . The same happens when pressing this key while in Internet Explorers address bar

Disable Browser Shortcut Keys

眉间皱痕 提交于 2019-12-23 18:53:46
问题 I am trying to create, essentially, a 'kiosk' I have an web application that I want to be the only thing accessible on screen. I know chrome has a 'kiosk' mode (shortcut: chrome.exe --kiosk www.url.com). That takes care of the auto-fullscreen, but disables very few shortcuts (perhaps only f11). With a bit of help from the internet, I wrote out some javascript that gets most of the job done. The code is as follows: window.onload = function() { window.document.body.onkeydown = function() { if