keyboard-shortcuts

How can I Prevent Shortcuts from Colliding/Interacting in Delphi?

I use the standard Cut, Copy, Paste actions on my Main Menu. They have the shortcuts Ctrl-X, Ctrl-C and Ctrl-V. When I open a modal form, e.g. FindFilesForm.ShowModal, then all the shortcuts work from the form. But when I open a non-modal form, e.g. FindFilesForm.Show, then the shortcuts do not work. I would think that those actions s...

NSView in NSMenu -- how to make "key" for accepting keyboard commands [specifically, return]

I have a text field and a button living in a view inside a menu item. The button submits the string in the text field to a function, and that works fine. However, I've also set the button's key equivalent to "return." The key command isn't being picked up, probably because the menu is not the "key" window. I know how to make a window th...

Command key as Meta key in OS X Terminal.app

When i unckeck the 'Use option as meta key' box in Settings, and then do Cmd-F (which i want to mean Meta-F for forward-word in bash) Terminal gives me a 'find word' popup, which isn't what i want. What i really want is for my Terminals to behave just like an xterm w.r.t. the key bindings. Is there any way to disable this popup and its b...

VIM: Delete+Paste in one "command"?

I'm doing a lot of text manipulation between multiple files that requires a lot of yy, dd and ping. This may sound crazy but is there some shorter way of doing dd and p in one go? Maybe even with a plugin? ...

Navigating through code with keyboard shortcuts

I'm starting to feel the need to run fastly through code with keyboard shortcuts, to arrive faster where I want to make any changes (avoiding use of mouse or long times holding [up], [left], [right] and [down]). I'm already using some: [home] - first position in current line [end] - last position in current ...

IntelliJ IDEA 9: Move line?

I really like IntelliJ IDEA's "Move statement" shortcut (Ctrl+Shift+UP/DOWN). However -- I am not sure if this is a bug releated to ActionScript editing only -- move statement is not always what I want and sometimes it is not correct when editing AS code. So I just want to move a block of lines up/down. The Eclipse shortcut is Alt+Up/Do...

CodeRush - Do That Suggested Fix - (shortcuts)

What is the keyboard shortcut to get CodeRush to do the #1 suggested fix for the situation? Do I really have to hover over the problem long enough to get the ellipse to show up and then pick a choice? Also is there a way to jump to the next problem area? ...

What is your favorite/most productive macro that you have used in Vim ?

I'm trying to know how vim experts use macro's in vim for day-to-day coding - I have a lot of custom shortcuts/mappings that I use frequently , but haven't come across any good ideas of macros. It may have been a macro which you had used before , to simplify a task tremendously - I just need ideas as to how to productively use this fea...

In Qt, how to show keyboard shortcuts in menu but disable them?

I'm adding a bunch of QActions to my main window's menus. These actions can also be triggered by the keyboard, and I want the shortcut to be visible in the menu, as usual, e.g. ----------------- |Copy Ctrl+C| ----------------- I can do this using QAction.setShortcut(). However, I don't want these QActions to be triggered by the s...

A way to automatically organize #imports in Xcode

I love the "Organize Imports" command in Eclipse to implicitly add and remove classes imported into a source file (as in Java or ActionScript). Is there a command in Xcode to update the #import directives at the top of.m Objective-C files based on the classes referenced within the file? ...

NSWindow does not respond to keystroke command-s

Hello, it may pre very simple, but cannot find it: I have three windows in three separate NIBs in my application. One is opened when a new document is opened, the other two can be opened from the program's window menu. The problem is: two windows (in them the one that is opened at the beginning) accepts the normal keystroke as for ex...

Is there a keyboard shortcut to revert individual changes in Intellij IDEA?

When a file has changes compared to the version checked-out from the version control system (subversion and cvs in my case), I use ctrl + alt + shift + upArrow/ ctrl + alt + shift + downArrow to jump between those changes. Sometimes I want to revert some of these changes (but not all the changes in the file). I can do that by using the m...

QPushButton & shortcut

Hey everyone, I have a problem with Qt 4.6.0 and shortcut for QPushButtons : I want to display a special text in a QTextEdit when the user clicks a button, but only when the button is pressed, as soon as it's released, i want another text to come up. Everything works fine but now I want to add a shortCut (let's say F1) to perform the ...

keyboard shortcuts stopped working , especially for control and shift keys for 10.6 (snow leopard)

Hello friends, My application has many keyboard shortcut like "shift + command + x" "control +command + r " , which are working nicely on 10.5 (Leopard) when i run same application on 10.6 (Snow leopard ) these keyboard shortcut don't work can you please tell me the reason behind it ? ...

What is Eclipse's Ctrl+O shortcut equivalent in IntelliJ IDEA?

I like to use Eclipse's shortcut Ctrl+O which outlines the current source. Is there an equivalent shortcut in IntelliJ IDEA? ...

Is there any shortcut for Navigation Bar in Visual Studio 2008?

In visual studio 2008 you have the navigation bar with Class Name combo box and Method Name combo box. What is the shortcut to get inside any of these combo boxes from the code window? ...

VBA disable/enable shortcut key combinations

I need to enable and disable shortcut key for select all "Ctrl + A". FindKey(BuildKeyCode(wdKeyControl, wdKeyA)).Disable FindKey(BuildKeyCode(wdKeyControl, wdKeyA)).Rebind wdKeyCategoryCommand, ?? What is the command parameter for Ctrl + A?? I cannot find this information anywhere! Also I want to apply it only for my templates: Cus...

Is there an "easy" way to add customizable keyboard shortcuts to my Qt4 app?

Hi all, I've got a sizable Qt app that has been in development since the Qt 3 days, and it now contains dozens of windows with thousands of menu items, controls, and other user-initiatable actions. It currently compiles under Qt 4.6, for Linux, MacOS/X, and Windows. The new feature request from on high is that the user should be able t...

WebBrowser Keyboard Shortcuts

I have a WebBrowser control displaying some HTML. I want the user to be able to copy the entire document, but not do anything else. I've set the IsWebBrowserContextMenuEnabled and WebBrowserShortcutsEnabled properties to false, and I want to handle KeyUp and run some code when the user presses Ctrl+C. How can I do that? The WebBrowser ...

Disable HotKeys When Typing - VB6

Hey guys, In my VB6 program, I have tons of hotkeys such as X, A, D... ETC . I also have a chat system in it, where everytime I use the characters X or A it will do the actions of those hotkeys. For example, if X was to close the application (not that it really does), when I am typing "fiXing" into my chat textbox, it will close the app...