keyboard-shortcuts

Send Windows key keypress into application [duplicate]

血红的双手。 提交于 2019-12-20 01:01:25
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: How to detect the currently pressed key? (EDIT: For what it's worth, this is not a duplicate... not sure why it was voted as such) I have a small timer application that we use in the office to track the hours spent on a project. There is a start and stop button, and a project and task fields. When we go on break and to lunch and other things, we stop the timer for that project, then restart it. This is a

how to swap clipboard content with selection upon keyboard shortcut

故事扮演 提交于 2019-12-19 11:59:06
问题 I'd like to exchange the currently selected text in eclipse (or even any program) on linux with the content of the clipboard when pressing a shortcut like Ctrl-B. Any ideas? A similar question has been posted here regarding Visual Studio but unfortunately the only useful answer pointed to AutoHotkey which is only available for Windows or is there a linux equivalent? 回答1: There is a project called IronAHK which aims to make AutoHotkey cross-platform. It looks to have an extremely long

What is the “When” and “Command” for ctrl-P panels?

柔情痞子 提交于 2019-12-19 11:30:10
问题 I'm trying to create my own key shortcut to act as the arrow keys in Visual Studio Code. When I hit "ctrl-p" it pops up a window that I can navigate. However, when I use my special keybinding, which I've set as { "key": "alt+i", "command": "cursorUp", "when": "textInputFocus" } it does not move up to the next option like pressing the up arrow does. I'm guessing this is due to having either the wrong command or the wrong "when" for getting the keymap to trigger when that window is open.

Keyboard shortcuts and action listeners

拈花ヽ惹草 提交于 2019-12-19 09:03:30
问题 Wondering how to link a keyboard key to a JButton in netbeans, Downloaded KeyEventDemo program from oracle that lets you press a key and it tells you the keycode, Now im wondering how to implement that, working on a calculator project and I already have the ability to click on any button and have it either + , - , / , * or enter so now I am wondering how to link the 2 together, essentially I'm trying to figure out how to check which key is being pressed in a method, and then run a method

Setting the Windows Forms ToolStripMenuItem ShortcutKeys property to numpad key does not work

有些话、适合烂在心里 提交于 2019-12-19 09:01:15
问题 We have the ability to define shortcut keys for Windows Forms application menu items. That way I can tell a menu item File->Save to have the shortcut key Ctrl + S and the menu item's handler is "magically" executed after pressing Ctrl + S . The trouble is with the numeric keypad keys, the ShortcutKey property does not accept them (I don't understand how are they different from the other acceptable keys). MSDN states that the property accepts type System.Windows.Forms.Keys (One of the Keys

How do you disable a DataGridView's keyboard shorcuts?

百般思念 提交于 2019-12-19 07:50:51
问题 I've just noticed that DataGridView s have a default shortcut so that whenever you press Ctrl + H , the DataGridView 's editing control backspaces, and can delete your entire selection within the cell. This can get quite annoying since I want to open a Replace box whenever Ctrl + H is pressed. Is there any way to stop the backspacing while still being able to use it to open the replace box? I'm running C# 2.0, but I could update my application to 3.5 if the newer C# has a solution. 回答1: This

Shortcut to change a line of words to a vertical list in Sublime Text 2

回眸只為那壹抹淺笑 提交于 2019-12-19 04:40:31
问题 Is it possible to make this title on line 1 a list of items from each word or symbol seperated by a space with a keyboard shortcut. So that I can select the title and then hit a shortcut and it will make the title a list of items like below: Tried saving the Key Binding file. 回答1: Nothing built in, but you can do it with a plugin. import sublime import sublime_plugin import re class SplitLineCommand(sublime_plugin.TextCommand): def run(self, edit, split_pattern=" "): view = self.view cursors

alternate way to trigger reverse-i-search without pressing ctrl+r in bash

荒凉一梦 提交于 2019-12-19 04:08:12
问题 The reverse-i-search facility in bash is useful, but it is unlike most other bash commands in that it seems to be bound to a keybinding ( Ctrl + R ). How can a user trigger this facility using an alias or typed-in command instead? 回答1: The reverse-i-search function is actually a readline function (reverse-search-history) and not a bash builtin function (man builtin or see builtin commands in the bash reference manual). To my knowledge there is no way to call a readline function outside of

What's the default intellisense shortcut in vs2008?

时光毁灭记忆、已成空白 提交于 2019-12-18 18:58:02
问题 I'd like to open the intelligence window without typing a character and then backspacing it. I can't seem to remember the shortcut for this. What is it? 回答1: Ctrl + Space ? Also, go to Tools -> Options -> Environment -> Keyboard or Default Keyboard Shortcuts in Visual Studio, you can then search for commands and see what is assigned to that (and remap). 回答2: Ctrl + Space for normal Intellisense, and Ctrl + Shift + Space for parameter Intellisense (e.g. to see what overloads are available in a

What's the default intellisense shortcut in vs2008?

爱⌒轻易说出口 提交于 2019-12-18 18:57:07
问题 I'd like to open the intelligence window without typing a character and then backspacing it. I can't seem to remember the shortcut for this. What is it? 回答1: Ctrl + Space ? Also, go to Tools -> Options -> Environment -> Keyboard or Default Keyboard Shortcuts in Visual Studio, you can then search for commands and see what is assigned to that (and remap). 回答2: Ctrl + Space for normal Intellisense, and Ctrl + Shift + Space for parameter Intellisense (e.g. to see what overloads are available in a