keyboard-shortcuts

Detect whether stdin is a file or console using .Net

Possible Duplicate: How can I determine whether Console.Out has been redirected to a file? Is there a way of telling whether the stdin stream to a console app is coming from the console or from a file using .Net? I'm writing an app that should read from a file on the stdin if there is one but ideally shouldn't read from the s...

Bind SHIFT-CTRL-8 and 9 to { and } in Ubuntu

Hello, I would like to be able to hit SHIFT-CTRL-8 and 9 to get { and } in Ubuntu. Any ideas on how to do that? -Martin ...

Distribute keypresses between parent form and child control

Sometimes a keystroke on a form can have different recipents, depending on the state of the application. See the following sample: unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls, Buttons; type TForm1 = class(TForm) private ListView1...

Add Keyboard Binding To Existing Emacs Mode

I'm attempting my first modification of Emacs. I recorded a little keyboard macro and had Emacs spit it out as elisp, resulting in: (setq add-docstring "\C-rdef\C-n\C-a\C-m\C-p\C-i\C-u6\"\C-u3\C-b") (global-set-key "\C-c\C-d" 'add-docstring) Searching the Emacs reference, though, revealed that C-c C-d is already bound in diff mode...

Is there a way to remove Alt-character shortcuts from controls at runtime?

I have a dialog with a number of Alt-Letter shortcuts on labels for textboxes/etc. This dialog can present data in either an editable or a read-only mode. I've received a request to hide the underlines for the shortcuts if the dialog is in read only mode. Other than editing the label text at runtime (ugh) is there any way to remove th...

How to bind C-` (backquote) in emacs

I would like to bind C-` (control-backquote) but I could not do it. The sexp (global-set-key "\M-`" 'other-window) works, whereas (global-set-key "\C-`" 'other-window) doesn't. It fails with the "Invalid modifier in string" error. ...

Can I automatically insert all members of a object somehow in Visual Studio?

I like to insert all members of a object automatically, so I dont need to type them (or even click them). Ctrl+J gives me the dropdown, but I like them all in code with a default value, MyObject.Member1=0; MyObject.Member2=""; MyObject.Member3=0; Any Add-In or existing shortcut that can help me with that? /Edit : I like to have the...

WPF Commands firing via Keyboard shortcuts don't set the Command Parameter

I have a command binding on the main form of my application. It is used to open details of the item that i am viewing. It has an associated keyboard shortcut. When i use the command in sub-forms i pass the object i want to open details for as a CommandParameter. This works if i attach the command to a button or a context menu, as i can ...

How to assign shortcut key (something like Ctrl+F) to text box in windows form?

Hi, I am builing one tool using C#. Its an windows application. I have one text box on a form and I want to assign focus to that text box when user presses Ctrl+F or Ctrl+S. I dont know how to do this. Can anyone please tell me how to do this? ...

[Flex] How to open a menu automatically with a shortcut ?

Hi there I have a MenuBar which contains general menu items like File, View, Tools ,Help. I have sub items in each of those menuitems. The problem is that i want to open the 'File' menu automatically when i press Alt+f key. I could capture the keyevents on the view. But how to open the File Menu of the MenuBar (what is the function t...

Is key 'chord' functionality provided by Win32/.net?

Several MS apps support the concept of chords, like "CTRL+X,Y" which means "holding down CTRL, press X, then Y". Is this a bespoke thing they (and other companies) implement, or is it built into any APIs? It would be nice to be able to set up event handlers or accelerators based on chords rather than write code to do it. ...

Shortcut to create a method stub in eclipse

I think some shortcut to create a method stub in eclipse might be useful. Does anyone know how to do it? ...

Visual Studio 2010: highlight CSS text and comment

Consider a snippet of CSS code from a .css file in Visual Studio 2010 to be commented out. Normally Ctrl-E + Ctrl-C will comment your selected HTML and other source code. Highlighting CSS code & executing that shortcut combo results in a warning message: The key combination is bound to command (Comment Selection) which is not cu...

shortcut to menu

Hey, How to create shortcut to menu in WinForms. I think about something like in Visual Studio and Firefox, where I press Alt and mainly menu items shortcut letters have been underline. How to do this?? ...

Are there keyboard shortcuts for RadioButton and Checkbox?

I have a lot of data-entryists using my ASP.NET application and we have all been wondering if there are any keyboard keys or shortcuts that you can press to trigger: Check a RadioButton Uncheck a RadioButton Check a Checkbox Uncheck a Checkbox I know that you can write Javascript and do it yourself, but do any keyboard keys/shortcut...

simulate backspace key with java.awt.Robot

There seems to be an issue simulating the backspace key with java.awt.Robot. This thread seems to confirm this but it does not propose a solution. This works: Robot rob = new Robot(); rob.keyPress(KeyEvent.VK_A); rob.keyRelease(KeyEvent.VK_A); This doesn't: Robot rob = new Robot(); rob.keyPress(KeyEvent.VK_BACK_SPACE); rob.keyRelea...

Is there a shortcut to move between header and source file in VC++?

This is a feature I have grown accustomed to in Eclipse (alt-tab). Is there an equivalent in Visual C++? Thanks! ...

JQuery Hotkeys: Is there a way to bind hotkeys that work even inside an input element?

I've been using JQuery hotkeys to make an internal tool for a team of developers. It'd be nice for them to be able to navigate through the entire page using only the keyboard, but I've been having problems when they end up in input fields. Is there a way to bind a hotkey and make it work even inside an input element? I got my jQuery-h...

How select the rest of the word in incremental search in Eclipse?

When in incremental search mode in Eclipse, is there a way to select the rest of the word? For example, suppose I want to find the word “handleReservationGranted”. I type Ctrl-f to enter incremental search mode, and start typing the letters “han”. Now suppose I have found the beginning of “handleReservationGranted”. In my search box I h...

Eclipse keyboard shortcuts: "alt+shift+" vs. "shift+" vs. "ctrl+alt+" etc. -- Is there an underlying logic?

There are a zillion questions on SO about keyboard shortcuts in Eclipse, but there's I've always wondered if there is an underlying logic to the decisions of which shortcuts would be ctrl+alt+[some letter], and which would be just ctrl+[some letter] etc. Obviously there is a need to use a variety of combinations because there are only so...