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

Trouble making customized DefaultKeyBinding.dict work throughout

I'm running OS X 10.11. I've been creating customized key binding by editing my ~/Library/KeyBindings/DefaultKeyBinding.dict file, and I've successfully got a bunch of emacs-like shortcuts to work in parts of some applications, but for the most…
0
votes
1 answer

User keybindings - return 'letter/symbol' combination not command

I want to create a custom keybinding in sublime text 3 that doesn't return a command but returns the key combination used in R to define a variable like below. variable <- variable_definition //for example z1 <- seq(1,100) In R 3.2.2 GUI mac OS X…
RUrlus
  • 3
  • 1
0
votes
1 answer

Emacs: custom function and keybinding for commenting out line

I have been trying out stuff and looking at other answers for several hours now and I cannot figure out how to make custom functions and keybindings work... and it is absolutely infuriating. For the purposes of testing I wrote this function (defun…
lo tolmencre
  • 3,804
  • 3
  • 30
  • 60
0
votes
1 answer

Apply class binding to combobox in python

Is it possible to apply class binding to comboboxes? Like for example with Entries self.master.bind_class("Entry", "", self.rClicker) I am trying to do the same with Combobox but whatever i write it does not…
gis20
  • 1,024
  • 2
  • 15
  • 33
0
votes
1 answer

Change SublimeREPL Execute Key Binding to cmd-enter in Sublime Text 3 (ST3)

In sublime text 2 I simply used Enhanced-R in order to use the cmd+enter hot key to evaluate a snippet of code in SublimeREPL or the native R app. As far as I can tell, this package doesn't exist for ST3. So, might I change the key binding,…
Michael Davidson
  • 1,391
  • 1
  • 14
  • 31
0
votes
0 answers

How do I implement a press and hold key bind in java?

I was kind of unsure how to ask this question since my code is almost right, but anyway I am implementing the usual WASD keys for movement on a robot I have. For now I am simply working on the keybindings to a button. So my code is supposed to…
Dayman
  • 67
  • 1
  • 7
0
votes
0 answers

Block key presses for a certain amount of time (Java Game Development)

I'm building a 2D game from scratch for educational purposes. For now, a character should move on tiles. If, say, the left arrow is pressed, I want the character to move left an entire tile and then stop. In the meantime, it should ignore all other…
FuriousFry
  • 181
  • 1
  • 2
  • 12
0
votes
3 answers

Keybinding not working for Some Keys like Insert,Delete

I'm trying to bind a shortcut for JTable It's working fine for Alphabets but not for Keys like Insert,Delete,Space etc. For Ex the below code is working for Ctrl+I or whatever alphabet but If I go for Ctrl+Insert it's not working why is that? import…
Madhan
  • 5,750
  • 4
  • 28
  • 61
0
votes
2 answers

Java JFrame code giving Null Pointer Exception

So the problem I am having has to do with my JFrame. First I am going to post my code here and then explain the problem. package evenMoreTesting; import java.awt.event.ActionEvent; import javax.swing.AbstractAction; import…
cei-ge
  • 3
  • 1
  • 5
0
votes
1 answer

Java Swing Key Handlers sporadically not working

I am developing a Java Swing based video game. I am having a problem with detecting keystrokes- the 'A' (move left) and 'D' keys (move right), where it almost seems they are not firing (but happens rarely). Almost as if they have become…
user1104028
  • 381
  • 7
  • 18
0
votes
3 answers

Making a timer with code that can easily be reset

I'm making a shot clock for my school's basketball team. A shot clock is a timer that counts down from 24 seconds. I have the skeleton for the timer right now, but I need to have particular key bindings. The key bindings should allow me to rest,…
0
votes
2 answers

Program not painting screen properly

I've been constructing a short program that basically draws a spaceship on a JPanel and listens for keys that tell the program to shoot a bullet. The problem is that it's not even painting the spaceship or the bullets on the screen. I also suspect…
Eames
  • 321
  • 2
  • 19
0
votes
2 answers

How to Pass Cell Information from DataGrid in WPF KeyBinding?

I'm having a DataGrid to list the MobileInfo Collection. The DataGrid is Configured with SelectionUnit="FullRow". If I Click the any Row then it selects the entire row with additionally it points the Cell with border where the Mouse was hit. The…
B.Balamanigandan
  • 4,713
  • 11
  • 68
  • 130
0
votes
1 answer

How to customize keybinds

I'm trying to find a way to customize the keybinds in my program. I'd like to make something like the image below How could I go about doing this? Is it just best to make a list of buttons and apply them to an int in my settings?
Harry
  • 1
0
votes
1 answer

Create Key Binging in Sublime Text 2 that tags highlighted text with snippet

I have already built a snippet. Which works fine. To better help understand the problem, lets say my snippet creates an anchor tag with inline styling: My problem is that when I attempt to add a key…
Steez
  • 219
  • 5
  • 17