keyboard-shortcuts

copy paste shortcuts only working with ctrl key in OSX Java application

可紊 提交于 2019-11-29 15:16:30
I created a small application using Netbeans 8.1 on OSX, doing these steps: I created a new JForm using category "Swing GUI forms" I added three menus to it: I added a JDialog with text fields and linked it to the third menu ("TAnalyse"). In this JDialog i need copy / paste functionality for the text fields. The problem is: copy / paste only works in this dialog with "ctrl" + "c","x" or "v" and not with the osx standard "cmd" key. I tried to add the following line of code to the constructor of the JForm but it didn't work: KeyStroke stroke = KeyStroke.getKeyStroke(KeyEvent.VK_C, Toolkit

Is it worth swapping Ctrl and Caps Lock for windows users that don't use Emacs

我与影子孤独终老i 提交于 2019-11-29 14:26:09
问题 I've been aware of Steve Yegge's advice to swap Ctrl and Caps Lock for a while now, although I don't use Emacs. I've just tried swapping them over as an experiment and I'm finding it difficult to adjust. There are several shortcuts that are second nature to me now and I hadn't realised quite how ingrained they are in how I use the keyboard. In particular, I keep going to the old Ctrl key for Ctrl + Z (undo), and for cut, copy & paste operations ( Ctrl + X , C and V ). Experimenting with going

vim cant map <C-Tab> to :tabnext

这一生的挚爱 提交于 2019-11-29 14:12:06
问题 I have the following mappings in my .vimrc: map <C-S-Tab> :tabprevious<CR> nmap <C-S-Tab> :tabprevious<CR> imap <C-S-Tab> <Esc>:tabprevious<CR>i map <C-Tab> :tabnext<CR> nmap <C-Tab> :tabnext<CR> imap <C-Tab> <Esc>:tabnext<CR>i I want to switch the tabs with Strg+Tab forward and with Strg+Shift+Tab backward. Why does this mapping not work? 回答1: Are you using xterm ? If so, you can't map ctrl-tab without a lot of hackery. xterm and many other terminal emulators don't recognise ctrl-tab and

How do I create compound keyboard shortcuts in a Windows Forms application?

和自甴很熟 提交于 2019-11-29 12:12:15
问题 I want to create a component that allows us to have compound keyboard shortcuts associated with an arbitrary command, like the Visual Studio IDE and Microsoft Office do. That is, keyboard shortcuts consisting of a sequence of multiple keystrokes, such as Ctrl + W + C . In Visual Studio this opens the class-view. When the first set of the keys is pressed ( Ctrl + W ) the message "(Ctrl + W) was pressed. Waiting for the second key of the chord..." appears in the status bar. 回答1: In answer to

Global hotkeys in a cross-platform Qt application

限于喜欢 提交于 2019-11-29 12:05:01
问题 I'm creating a cross platform utility, in C++ using Qt, for which I need to have shortcut keys (or hotkeys, not really sure about the difference). Essentially the application will run and only be visible as an icon in the system tray, and do stuff when you press certain shortcut keys (eg, Ctrl-Shift-f4 or something). I am under the impression that Qt doesn't provide a way to handle shortcut keys unless the application is in focus, which, in my case it won't be. So, that's out (if however that

Keyboard Shortcut for Moving Between Words in Camel Case in Notepad++

社会主义新天地 提交于 2019-11-29 11:26:23
问题 In Notepad++, is there a keyboard shortcut for moving between the compound words in a camelCase word? When I use the shortcut Control + Right/Left , the caret moves to the next "real" word, not the next compound word. 回答1: Right : Ctrl \ Left : Ctrl / Source: http://sourceforge.net/p/notepad-plus/discussion/331753/thread/bf4ad0f5. Here is the interesting bit: You can. Set the shortcuts in the shortcut mapper (Scintilla Commands tab) for SCI_WORDPARTLEFT, SCI_WORDPARTRIGHT. The "EXTEND"

Disable/Change Firefox Safe Mode Hotkey (Shift)

痴心易碎 提交于 2019-11-29 11:13:55
Is there any way to change the firefox shift hotkey that makes firefox start in safe mode? I've set up some unit tests using Selenium and PHPUnit, but if I'm working on the machine while the tests are running then I frequently find I'm pressing shift as I type (holding shift as I select blocks of code is another big offender). This causes the test to fail (and time out) even if you click past the safe mode prompt that pops up. Is there a way to disable this hot key, or change the key to something that I'd use less often? I've also met with this problem and didn't find a solution. It seems that

Can I use SPACE as mapleader in VIM?

偶尔善良 提交于 2019-11-29 10:30:41
问题 From http://items.sjbach.com/319/configuring-vim-right I got that you were supposed to be able to use Space as the mapleader in vim. I've tried but it does not seem to work. Anyone who have made it work? Tried: let mapleader = <space> 回答1: Try the following instead: let mapleader=" " 回答2: Mapleader is a Vim string variable. To use space as leader, you must escape the special character. let mapleader = "\<Space>" For more info see, http://vimdoc.sourceforge.net/htmldoc/eval.html#expr-quote

Disable use of MacVim keyboard shortcuts

核能气质少年 提交于 2019-11-29 09:07:59
问题 Is there any way to disable keyboard shortcuts in MacVim? I mean the shortcuts like Cmd + s for example, I want to convince myself to use things like :w , but I can't do so if I can save the file using Cmd + s , you get me? But I of course, still want to use the GUI, so is there any way to disable these, without stoping using the MacVim GUI? Thanks for your help. BTW I made a Google search and wasn't able to find an answer. EDIT: Following @ChrisJohnsen's suggestion, I have already tried the

C# shortcut key underscore not displayed in built application

隐身守侯 提交于 2019-11-29 08:02:29
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? BartoszKP As mentioned in other answers, this the default behaviour. Accelerators are being shown only after the ALT key is pressed. However it seems possible to force Windows to display accelerator keys