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
8
votes
1 answer

JavaFX: scrolling vs. focus traversal with arrow keys

I got a ScrollPane containing focusable Nodes. The current default behaviour is: Shift + ←, ↑, →, ↓ moves the focus ←, ↑, →, ↓ scrolls the view I want it the other way around. How can I accomplish this or where should I start? [EDIT] Well, there…
Jens Piegsa
  • 7,399
  • 5
  • 58
  • 106
8
votes
4 answers

Shortcut for inserting environments in `org-mode`

I'm using org-mode for organizing myself (very useful so far!). However, it is kind of annoying writting #+begin_comment ... #+end_comment each time I'd like to insert an environment. Question Is there a shortcut to insert the #+begin_ and…
Dox
  • 187
  • 1
  • 8
8
votes
2 answers

How do you remove the Ctrl+C action on a JFileChooser?

I'm embedding a JFileChooser in my program in my own frame with other custom components in the frame. Here's a design of my app as it may help visualize my issues: If you can't tell, the lists directly under the JFrame titles are JFileChoosers. …
Daniel Kaplan
  • 62,768
  • 50
  • 234
  • 356
8
votes
1 answer

Java: How to remove default KeyStrokes from any JComponent?

I want to control which keystroke belong to which Jcomponent. I even want to get how to remove the default keystrokes associated with a Jcomponent and replace them with other favourite keystrokes. I followed this oracle tutorial, it gives an…
Saleh Feek
  • 2,048
  • 8
  • 34
  • 56
8
votes
2 answers

Emacs keybinding changes between Emacs 23 and Emacs 24

I recently upgraded to Emacs24, and a number of my custom keybindings broke as a result of it. According to the fine manual, it is possible to make Emacs stop conflating function keys with their ASCII control codes (eg, it is possible to have C-m…
robru
  • 2,313
  • 2
  • 29
  • 38
7
votes
2 answers

Emacs how to get copy-paste, shift arrow text highlight, etc

I need to know how to make Emacs usable for a person so used to windows... Specifically what I really need are: 1) Copy-paste keys 2) Shift arrow to select text 3) The backspace acting regularly, i.e. I don't want the cursor to have to be on the…
JDS
  • 16,388
  • 47
  • 161
  • 224
7
votes
2 answers

Comparing functionality between KeyListeners and Key Bindings

This question arose when an anonymous user downvoted an answer of mine involving KeyListeners and suggested the use of Key Bindings instead. This anonymous user informed me that the KeyListener interface was an old AWT solution and should not be…
fireshadow52
  • 6,298
  • 2
  • 30
  • 46
7
votes
1 answer

Unable to map Ctrl+Right or Ctrl+Left keybindings in Visual Studio Code

For some reason the "ctrl+right" / "ctrl+left" keybindings does not work for me in visual studio code. I took a screenshot of my keybindings.json and the Keyboard Shortcuts Troubleshooting: I've tried the same mapping without the "when" condition…
7
votes
1 answer

VS Code - Move the cursor between 'k' and 'O' in the word "stackOverflow"

I want to move the cursor in to next Uppercase letter in a word like between e and C in the word googleChrome with a keyboard shortcut. We all tend to use variables with two words as twoWords instead of two_words. So, It would be really helpful if…
Sarvesh M.D
  • 192
  • 1
  • 11
7
votes
4 answers

Perform pre-defined Find-Replace-All in VSCode using a keybinding

I can't seem to find a good list of documented commands that can be run from VSCode keybindings. On the online VSCode documentation, the Commands Guide lists two ways to discover commands: Browse the keyboard shortcuts Look through VS Code's…
drwatsoncode
  • 4,721
  • 1
  • 31
  • 45
7
votes
1 answer

Dynamically change line-numbering settings in Visual Studio Code

I know I can change the line-numbering in Visual Studio Code to relative by adding the line "editor.lineNumbers": "relative", to the settings.json file, but I am looking for a way to bind it to a keybinding such that I can toggle between absolute…
Testare
  • 338
  • 3
  • 12
7
votes
2 answers

VS Code extension - programmatically find keybindings

When programming a vscode extension... Is there a programmatic way to find the keybinding for a provided command? I would like to be able to see if a user has updated the key mapping from default for a command so that the UI can display the…
Jon G
  • 165
  • 1
  • 6
7
votes
2 answers

Vim: Map ctrl+pgup and ctrl+pgdn (CTRL+Page Up/Down) key combinations

I'm trying to map Vim commands to the ctrl+pgup and ctrl+pgdn key combinations. The vim syntax for these keys does not work (i.e., and , or and ). Since the default vim syntax doesn't work, I'm guessing that…
GreenRaccoon23
  • 3,603
  • 7
  • 32
  • 46
7
votes
1 answer

Binding multiple events on Tkinter Entry?

I want to capture the time(in milliseconds) taken by a person to type a password, that is, from the first key press to the time the person presses Enter button. To accomplish this, I have the following code: import tkinter as tk import time class…
CN1002
  • 1,115
  • 3
  • 20
  • 40
7
votes
8 answers

Remap arrow keys onto JKLI whenever holding down a certain modifier key

I'm just wondering if there's a way that I can hold down the control key or something and use my jkli keys as arrow keys. I think it will be easier to program. Is that possible? Thanks.