Questions tagged [key-bindings]

Anything related to key-bindings (a.k.a. "keyboard shortcuts", "hotkeys", etc.), i.e. the associations between key combinations and the corresponding actions triggered when the user presses such combinations.

Anything related to key-bindings (a.k.a. keyboard shortcuts, hotkeys, etc.), i.e. the associations between key combinations and the corresponding actions triggered when the user presses such combinations. For example, pressing alt + F4 closes an application on Windows, while ctrl + C copies the selected text into the clipboard for both Linux and Windows GUI applications.

See Wikipedia on keyboard shortcuts.

1731 questions
0
votes
1 answer

Changing direction while moving

I am making a game with a space ship that rotates when the left and right keys are pressed and moves forward when the up key is pressed. Currently the ship can rotate while its moving forward but it will continue in the same direction that it is…
Ben
  • 1
  • 1
0
votes
2 answers

Override (globally override key binding in emacs) temporarily

I use the method stated here : globally-override-key-binding-in-emacs (defvar my-keys-minor-mode-map (let ((map (make-sparse-keymap))) (define-key map (kbd "C-i") 'some-function) map) "my-keys-minor-mode keymap.") (define-minor-mode…
tom
  • 1,302
  • 1
  • 16
  • 30
0
votes
1 answer

Detect automatically the escape sequence for a key combination

Is it possible to automatically detect the escape sequence for a key combination? , i.e., instead of running cat followed by pressing ctrl+right or ctrl+left manually to detect the escape sequence as ^[[5C or ^[[5D respectively, can it be automated?…
0
votes
2 answers

ModifierKeys Bitwise AND

I'm adding some functionality to the scrollwheel event on a Chart control and I was curious about the bitwise AND that is present in most documentation when determining which modifier key was pressed (e.g.…
Anthony
  • 6,422
  • 2
  • 17
  • 34
0
votes
1 answer

Autohotkey script to map Caps lock + X to spesified characters, script almost works

I have a norwegian keyboard. So I have to click RCtrl + 7 to get { and RCtrl + 8 to get [ etc. This is super annoying when I'm programming so I am trying to map the caps lock key to do the same as the RCtrl key. So I wrote this AutoHotKey…
ganjan
  • 7,356
  • 24
  • 82
  • 133
0
votes
1 answer

Eclipse with old Sun USB Keyboard

I'm forced to work with Eclipse (3.6) now, and i would like to re-use my favorite Sun keyboard with the left function block for cut/copy/paste/undo/find/etc (can't code without it ..). So far i got it working with about every IDE/Editor i used, but…
fesc
  • 11
  • 3
0
votes
1 answer

if (e.KeyChar == (char)ConsoleKey.F1) Doesnt respond in C# .Net Visual Studio

Hello fellow users of StackOverflow So I am working on a fun little project & I am very close to being done, the only problem I have been running into is getting the keys to bind to the buttons. I might be too close to the issue since I am currently…
0
votes
1 answer

How to add one keybinding for all shortcuts in wpf xaml

I need to know how to add one keybinding tag and how to reuse the same tag for all keybindings.Also any possibilities of having a keybinding framework.
LahiruD
  • 93
  • 1
  • 12
0
votes
0 answers

How to add set of keys to keybinding in wpf

I need to add set of keys to the keybinding in wpf. So any ways of adding list of key bindings in a one place or best practises ? eg-
LahiruD
  • 93
  • 1
  • 12
0
votes
1 answer

How to select commands based on file syntax in Sublime Text

I spent way too much time working out exactly how to override a particular code formatting tool in favor of another one when editing JavaScript, but leaving the other one in place for formatting HTML and CSS. I didn't find any complete instructions…
shanemgrey
  • 2,280
  • 1
  • 26
  • 33
0
votes
1 answer

Java swing Key Binding for multiple JPanels

i working on a little game (rpg) in java and i need to move my character with UP, DOWN, LEFT, RIGHT in different panel who represent each level of my game. I use KeyListener first and this is working fine for the first panel, but not with the…
barnab21
  • 81
  • 1
  • 8
0
votes
1 answer

Disabling Mousewheel Bind

I am Using Cloud9.io I want to scroll UP the timeline in terminal but not go scroll up in commands when I move my mouse wheel up. I do not want mousewheel to function the same as up and down arrow keys. How can I disable the mousewheel bind?
0
votes
3 answers

How to know when a certain sequence of chars is typed?

I'm writing an angry-birds-like game, and I want that when the player types 'g', and then 'o', and then 'd' ('god', for 'god mode'), a target will apear on the spot that the bird will currently (given the degrees and initial velocity) land on (if…
David
  • 45
  • 6
0
votes
2 answers

What's the quickest way to pull up Vim's quickref page?

What is the simple key combination in Vim to bring up the quickref page, or at least a page that is functionally similar i.e. it contains a list of commands and their key bindings? After manhandling Google for 15 minutes, I can't find anything…
Simon Hoare
  • 105
  • 5
0
votes
2 answers

Can I use a keypress combination to scroll up or down in a JTextArea inside a JScrollPane?

If the text area has the focus, of course the PgUp and PgDn keys work fine, but I was hoping to scroll it up or down using key bindings, leaving the focus where it is instead of moving it to text area and back. So I've mapped VK_PAGEDOWN with…
DSlomer64
  • 4,234
  • 4
  • 53
  • 88