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
0 answers

How to map continuous key press to mean multiple key strokes of same key in sublime text 3?

We can map key bindings to actions in Preferences --> Key Bindings - User. There is one type that I couldn't figure out how to map. I use unix style key bindings to navigate the file and would like to map continuous press of j to indicate that it…
Srini K
  • 3,315
  • 10
  • 37
  • 47
0
votes
1 answer

Add simple keybinding in Atom

How can I add a keybinding in Atom to run rustfmt on the current file? Do I have to create or install a package? Can I attach it to the "Editor: Auto Indent" command? How do I find out which package Auto Indent comes from?
dspyz
  • 5,280
  • 2
  • 25
  • 63
0
votes
2 answers

wxPython Key Bindings don't work on Linux

The following program works for me in Windows but not in Linux. There are no print statements displayed when I press the keys that I binded. However, the tab key can switch between the two buttons and the enter and space key toggle them. No other…
Yello Four
  • 227
  • 1
  • 4
  • 17
0
votes
3 answers

Use a keyboard shortcut to open and close batch file program

Im super new to programming, falling in and out from time to time. But once in a blue moon, I want to add functionality to my keyboard, in attempt to make my life a little easier. So what I want to do, is ALT + NumPad x to start a program, and if…
zacsloth
  • 31
  • 1
  • 7
0
votes
1 answer

Navigating a multi-step form using arrow keys?

I have a 5 panel multi step form that uses divs 'previous' and 'next' to navigate through. I would like to make it so hitting a left arrow key acts as clicking the previous button, but hitting the right arrow key will act as hitting right. I have…
knocked loose
  • 3,142
  • 2
  • 25
  • 46
0
votes
1 answer

Vim binding to execute function

The vim binding I have created works well enough, although I would like the binding to actually execute the function for me. What currently happens is I enter the binding and my function shows up in the : prompt, then I press enter to activate the…
kilojoules
  • 9,768
  • 18
  • 77
  • 149
0
votes
1 answer

Key bindings not working for JFrame

I've read several topics showing how to create a KeyBinding, however, none of them fully worked for me. My JFrame has a JMenuBar and for the items of the menu NetBeans is correctly generating code such…
0
votes
1 answer

Clearing input-map of a JSplitPane

I chased down some keyboard problems to JSplitPane eating my cursor keys for WHEN_ANCESTOR_OF_FOCUSED_COMPONENT. I saw those entries in the step debugger. But when is the input map actually populated? Because if I try to clear it, there is nothing…
0__
  • 66,707
  • 21
  • 171
  • 266
0
votes
1 answer

Script or Key binding to run commands easily on Linux

I am using Screen with scrollback 100000. When I run the command clear or any other similar commands like Cmd-K (SSH to linux machine on MAC), it just clears the current displayed screen, not the scrollback history. I googled and found out that if I…
whiteSkar
  • 1,614
  • 2
  • 17
  • 30
0
votes
1 answer

Can I bind action to a keypress in Emacs?

I have (kbd "C-c S-") and (kbd "C-c S-") bound to shrink-window and enlarge-window, respectively. It works, but I also want Emacs to change window size during a keypress, while I am holding S- or S-. Is it possible in Emacs?
eush77
  • 3,870
  • 1
  • 23
  • 30
0
votes
1 answer

Why do KeyBindings, but not KeyListeners, detect ActionEvents in the following example?

From a java textbook, I copied a program that lets users move a body of text around their screens, using their arrow keys. The program will only work on non-OSX operating systems (I confirmed this with my mac and, presumably, it ran on the computer…
Muno
  • 575
  • 2
  • 5
  • 20
0
votes
1 answer

How do I access the name of the action defined in a Java key binding?

This code works well for me to make key bindings more pleasant, via calls such as those that follow: import java.awt.event.ActionEvent; import javax.swing.*; import static javax.swing.KeyStroke.getKeyStroke; public abstract class KeyBoundButton…
DSlomer64
  • 4,234
  • 4
  • 53
  • 88
0
votes
1 answer

Where to find emacs ansi-term bindings

I use extensively emacs' shell ansi-term but so far the way I discover the associated binding is by accidentally pressing keys, making something happening. Do you know where I can find all the binding refering to ansi-term (or more generally, to a…
wizmer
  • 881
  • 1
  • 8
  • 23
0
votes
1 answer

How do I use key name in key bindings?

This code works well for me to make key bindings more pleasant, via calls such as those that follow: import java.awt.event.ActionEvent; import javax.swing.*; import static javax.swing.KeyStroke.getKeyStroke; public abstract class KeyBoundButton…
DSlomer64
  • 4,234
  • 4
  • 53
  • 88
0
votes
0 answers

How do I bind the spacebar to the default function of ctrl in a listbox in python 3.4 with tkinter

I have a list box. the select mode is set to EXTENDED. Essentially, I want to replace holding ctrl + left mouse click with tapping the space bar to select multiple items in the list. the default selection of a single item is currently bound to left…
1 2 3
99
100