keyboard-shortcuts

Ctrl + Dot (ShowSmartTag) not working in Visual Studio 2012

泄露秘密 提交于 2019-12-18 14:54:29
问题 I'm now using the Visual Studio 2012, and now the keyboard shortcut for "ShowSmartTag", Ctrl + . , is not working. I googled a bit found someone said that CodeRush's Quick Nav shortcut is the same, so I disabled that command in CodeRush, but still I can not fix this. I also tried to disable all those suspicious extensions, but still no success. Any idea? 回答1: All keyboard shortcuts can be viewed from Tools > Options > Environment > Keyboard . What does your View.ShowSmartTag command say about

Ruby on Rails keyboard shortcuts

一曲冷凌霜 提交于 2019-12-18 12:34:50
问题 does anyone know how to set-up keyboard shortcuts using Ruby on Rails on my website? For example if a user want to interact with the site using keyboard shortcuts instead of clicking buttons/links how would I do this? 回答1: The simplest way is to set a value for the accesskey attribute for your elements. If you wanted to do this through Rails, you could do this by passing an extra option to the submit_tag helper method, like so: <%= submit_tag("Save and Refresh", :accesskey => "R") %> //

multiple “commands” in a single Sublime Text 2 user keymap shortcut

China☆狼群 提交于 2019-12-18 11:53:09
问题 Is there a way to have multiple "commands" associated with one shortcut? I have these two shortcuts. First shortcut makes the window on the left larger than the right one (in a 2 column view) and the next shortcut puts the focus on the first window. I tend to forget one or the other shortcut when coding quickly. { "keys": ["super+alt+left"], "command": "set_layout", "args": { "cols": [0.0, 0.66, 1.0], "rows": [0.0, 1.0], "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] } }, { "keys": ["ctrl+alt+left"],

Setting up application wide Key Listeners

左心房为你撑大大i 提交于 2019-12-18 11:33:46
问题 How do i setup application wide key listeners (keyboard shortcuts), so that when a key combination (e.g. Ctrl + Shift + T ) is pressed, a certain action is invoked in a Java application. I know keyboard shortcuts can be set JMenuBar menu items, but in my case the application does not have a menu bar. 回答1: Check out the How To Use Key Bindings section of the Java tutorial. You need to create and register an Action with your component's ActionMap and the register a ( KeyStroke , Action Name )

How to globally map AltGr key to Alt key?

强颜欢笑 提交于 2019-12-18 10:13:49
问题 I want my AltGr key to behave exactly like left Alt . Usually, I do this kind of stuff with Autohotkey, but I'm open to different solutions. I tried this: LControl & RAlt::Alt And Autohotkey displayed error about Alt not being recognized action. Then I tried the following code: LControl & RAlt:: Send {Alt down} KeyWait LCtrl KeyWait Ralt Send {Alt up} return which sort of works - I'm able to use the AltGr key for accessing hotkeys, but it still behaves differently: When I press and release

Chrome extension error with 'onCommand'

大憨熊 提交于 2019-12-18 09:32:02
问题 I'm getting the error "Uncaught TypeError: Cannot read property 'onCommand' of undefined" while running a Chrome Extension with the following content: manifest.json: { "name": "Test", "description": "Key command test.", "version": "1.0", "manifest_version": 2, "content_scripts": [ { "js": ["background_test.js"], "matches": [ "http://*/*", "https://*/*"] }], "commands": { "Ctrl+M": { "suggested_key": { "default": "Ctrl+M", "mac": "Command+M" }, "description": "Ctrl+M." }, "Ctrl-L": {

C# shortcut key underscore not displayed in built application

杀马特。学长 韩版系。学妹 提交于 2019-12-18 05:11:31
问题 I have a small problem with .Net 4.0 ToolStripMenuItem caption. I want it to underscore the Shortcut (access) key letter in the item text. I used the ampersand sign in the item text field: '&New map', and it looks fine in the editor: But, when I build the application, the underscores disappear: Does anyone know why does it happen and how to make the underscored display in the built form? 回答1: As mentioned in other answers, this the default behaviour. Accelerators are being shown only after

Java Keybinding Plus Key

狂风中的少年 提交于 2019-12-18 04:15:13
问题 I was trying to create shortcuts for zooming in and out in an image editing application I'm creating and I noticed something strange. To bind the combination of ctrl + + , I had to use the = key and a control and shift mask: getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_EQUALS, KeyEvent.CTRL_DOWN_MASK + KeyEvent.SHIFT_DOWN_MASK),"ZoomIn"); Neither of the combinations where I tried to directly bind to VK_PLUS worked: getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_PLUS, KeyEvent

How can I bind a specific key to different launch configurations in Eclipse?

老子叫甜甜 提交于 2019-12-18 02:46:09
问题 I have several launch configurations for the code I work on. One configuration (#1) means "run the unit tests for the file in the frontmost editor (i.e. selected resource)". I would really like to be able to always make this be bound to a key. Another configuration (#2) means "run the server that I am working on (in the frontmost project) so I can test it interactively". Yet another (#3) means "run some automated acceptance tests against the server". I always want to have #1 close at hand,

How to get Cmd-left/right working with iTerm2 and Vim (without requiring .vimrc changes)?

倾然丶 夕夏残阳落幕 提交于 2019-12-17 23:30:13
问题 I want to be able to use Option-left and Option-right to skip words (and Cmd-left/right to go to beginning and end of lines) within Vim as it does at my shell prompt. My Iterm2 preferences have mappings to do this (e.g. Option-left to Esc-H and a one for option-right to Esc-F to skip over words), and this works in the shell locally or when ssh'd to a remote server. When I use Vim locally or remotely, option-left works, but option-right does not. I suspect this is because Vim naturally listens