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.
1,738
questions
0
votes
0
answers
15
views
In Eclipse C/C++ IDE, how do I disable accessibility features to unbind the F10 key from accessing main menus, like in Eclipse Java IDE?
My first ever Stack Overflow question, merged from two text boxes:
I do not need F10 to access the Eclipse IDE main menus. In the Eclipse Java IDE I can bind F10 to whatever action I like. However, in ...
1
vote
1
answer
35
views
How can I delete unwanted keys in spacemacs org-cite/citar?
I am trying to use org-cite and citar-embark to manage my citations. I am okay with selecting (multiple) keys and editing citation styles with C-c C-x @ and embark-act. But the problem is, when I ...
0
votes
0
answers
12
views
codemirror-vim unbind terminal
So I'm using codemirror-vim in my app and I want to unbind keymap that opens terminal by default is it : or (shift-;) so I'm trying unbind it with Vim.unmap("Shift-:", "normal"); ...
0
votes
0
answers
17
views
Customizing Mathematica shortcuts with NeoQwertz keyboard layout
Question:
I want to use the Mathematica (currently version 13.2) shortcuts and use a NeoQwertz Keyboard layout (https://www.neo-layout.org/Layouts/neoqwertz/).
I know about the KeyEventTranslations.tr ...
0
votes
0
answers
37
views
Can I get the input and action map of a JFrame?
I've wanted to add a functionality to my program, if you press a specific key,the window will go fullscreen VIA KEYBINDINGS. And I tried this.getInputMap() and this.getActionKey(), but the JFrame does ...
0
votes
1
answer
28
views
Kivy & Python: How to activate a function using a key press from user?
I'm very new to Kivy and Python. A few weeks in.
I'm trying create a counter that will take user input (via key stroke) to increment a value. I've tried various codes, but I cannot seem to get it ...
0
votes
0
answers
45
views
C-o instead of C-c Prefix key
I'm new to emacs and I'd like to replace the full functionality of C-c with C-o, while freeing up C-c for other uses.
I tried to do this, but I get an error when calling C-o.
(global-set-key (kbd &...
0
votes
1
answer
27
views
Sending "r" to the terminal and saving the file as I hit "Ctrl + S"
{
"key": "ctrl+s",
"command": "runCommands",
"args": {
"commands": [
"workbench.action.terminal....
0
votes
0
answers
15
views
godot 4 with different input code for a player and a car
I have a 3d godot project and in it I have a player and a car. Sometimes that player goes into the car. When the player is outside the car the keyboard and key bindings should work for the player. ...
0
votes
0
answers
47
views
How to add Emacs-style keybindings to a text box in Qt?
I would like to create a text box which supports a few common keybindings from Emacs and Bash, such as:
Ctrl+b moves the cursor backwards by one character.
Alt+b moves the cursor backwards by one ...
1
vote
1
answer
35
views
Can't use `local-unset-key` in emacs to remove keybindings in org mode
I want to remove the key binding about "C-j" under org mode, then I am using "local-key-unset" to do it, but when I go to org-mode, the key binding is not removed.
My code is as ...
0
votes
0
answers
32
views
Pressing `Shift+Tab` after selecting multiple lines in VSCode should reindent them, but it doesn't
Version: 1.82.0
Commit: 8b617bd08fd9e3fc94d14adb8d358b56e3f72314
Date: 2023-09-06T22:07:18.759Z
Electron: 25.8.0
ElectronBuildId: 23503258
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-...
0
votes
1
answer
52
views
No build system showing in status bar (sublime text)
I am encountering an issue with my build system configuration in Sublime Text. Here is the configuration:
json
{
"cmd": ["python", "-u", "$file"],
"...
0
votes
0
answers
24
views
How to configure completions and suggestions in VS Code to be triggered by a key?
Context: I appreciate the different completions and suggestions that VS Code can provide, from the language server, from GitHub Copilot, and from words in the document itself. However, I find it ...
0
votes
1
answer
64
views
How can I write a VS Code key binding to insert a new line when pressing space after a period?
I'm using VS Code to write LaTeX and doing version control using git. Therefore, I would like to have one sentence per line.
\section{Hello}
This is a sentence.
This is another sentence.
What I would ...
0
votes
1
answer
39
views
C-v does not work as scroll down on wsl emacs
C-v causes "paste" in wsl ubuntu emacs. How can C-v be remapped to "scroll-down-command"?
0
votes
0
answers
58
views
How to make zsh-autocorrect insert common "prefix" instead of common "substring"?
TLDR
How can I configure zsh-autocomplete to insert up to the longest common prefix, excluding their common suffixes?
I have not seen this asked before on StackOverflow. Here is a GitHub issue which ...
3
votes
1
answer
114
views
How to bind a key to run a command and insert its output into the bash command line?
There are various command line utilities that allow interactively choosing a file and then print the user's selection to stdout, such as fzf or ranger. This feature allows for example running the cat &...
1
vote
1
answer
168
views
How can I focus the git commit message input in the Source Control View of VS Code with a single keyboard shortcut? [duplicate]
How do I invoke the commit input message box from the Source Control View (using one command/shortcut)? git.commitall invokes a floating commit message window.
The reason I want the one in the Source ...
1
vote
1
answer
81
views
Unexpected behaviour of Neovim in insert mode when executing many key-bindings
I recently switched from Vim to Neovim (the latest version).
I have the following key-bindings in Neovim:
vim.keymap.set("i", "0", "<Esc>la", { noremap = true })
...
0
votes
0
answers
32
views
Detecting if panel is focused in VSCode
I need to assign a keybinding in VSCode (alt+right/left) to switch between tabs in the panel (Terminal, Problem, output, Debug Console, etc.)
For some reason
"when": "panelFocus"
...
0
votes
1
answer
193
views
How to open a new text file in buffer using total number of buffer in neovim?
I want to make a keymap for <F7> in neovim such that if the current file is a text file then a new file will open horizontally but the file name will depend on the total number of buffer.
Ex: ...
2
votes
1
answer
42
views
Tkinter tab key not working with bindtags
I have a text field in a GUI and I'm trying to bind the tab key to an event in my class. This usually works just fine but when I try to bind it with bindtags, the tab key doesn't trigger any events. ...
0
votes
0
answers
69
views
Xcode 14 Key Bindings: Default Conflicts and Non-Functional Bindings
Without any customization whatsoever, there are 25 key binding conflicts in Xcode 14. This is the default set that Apple created. What’s more, many of the existing key bindings do not work.
One ...
0
votes
0
answers
56
views
Keyboard application in JavaFX that when I hit the enter button on keyboard it does an event
I have made a keyboard in javaFX and can either type on my keyboard or push the buttons with my mouse but the enter button on my keyboard only hits what ever the last thing my mouse clicked or Q and I ...
0
votes
0
answers
42
views
Detecting if a code is running with or without debugging in VSCode keybindings
In VSCode, in keybindings.json file, how can I detect if a code runs with or without debugging (f5 or ctrl+f5) Especially when the code is waiting for an input in which both states are 'inDebugMode' &...
0
votes
1
answer
33
views
Why are paredit keybindings showing incorrect instructions in emacs
I installed paredit in emacs (gui not terminal and no spacemacs or doomemacs, just emacs) and then checked some of the commands and their corresponding key bindings.
Ex. paredit-forward-slurp-sexp C-&...
0
votes
0
answers
7
views
Brackets autofill is not working after remapping the parenthesis button
I have accessed keybindings.JSON to re-bind the parentheses for convenience, it worked, but the auto closing did not, when I use the old binding it closes automatically. How can I make the auto ...
-1
votes
1
answer
671
views
SOLVED: The Mac Magic Keyboard Eject key is easily assignable
There have been so many discussions over the years about this and I don't mean to rehash any of it. But there is some information floating around that's not correct. Or if I'm wrong, please correct me....
0
votes
0
answers
22
views
"<>" key not working on Lite Linux (Ubuntu). Laptop HP Pavilion 11-u001ns
Been trying to figure out how to make this key work, but it just acts as a control key. I'm currently using a 105-key Spanish (Windows) layout, where the "<>" key is between Alt gr and ...
1
vote
1
answer
77
views
ClearAllFormatting shortcut (Ctrl+Space) doesn't work
I am unable to use the Ctrl + Space shortcut in Microsoft Word. When I try to add a new shortcut for "Clear All Formatting" through the "File" > "Options" > "...
0
votes
0
answers
48
views
VSCode keybinding - pass user input into dialogue
I want to to pass user input as an arg into the dialogue of a command in keybinding.json.
To bypass manual interaction.
For this extension example, I want to pass the value HTML.html and press enter ...
0
votes
1
answer
53
views
Change action of Tab in Microsoft Word [closed]
Please help, I need that when i press the tab key to move to a new line, similar to pressing the down key. Any ideas how to do it?
I tried to use autocorrect, but I don't know how to denote the tab ...
3
votes
2
answers
91
views
Defining a shortcut only in vimdiff
I have been using vimdiff in its vimdiff1 layout, where it opens side by side the two buffer of LOCAL and REMOTE. The reason I preferred this layout over the other standard layout is the two shortcuts ...
0
votes
0
answers
39
views
Custom keybinds
I'm attempting to make custom keybinds from a comboBox. The point is for the end user to be able to select "1" or something, to then be able to press it and make something happen.
private ...
1
vote
1
answer
36
views
KeyListener VS Key Binding for JField
I'm trying to do a dynamic search using JTextField, this is, I need to query a list of objects every time I strike a key (for example, I press an "A" and get all entries containing an "...
0
votes
1
answer
214
views
Setting keyboard bindings in ace editor
I am trying to figure out how to set keyboard bindings in ace editor to vscode key bindings. I can see in the CDN that there is a vscode keybinding file available I just don't know how to set it.
I ...
0
votes
0
answers
234
views
openconnect fails to keep running in the background in a terminal that's closed
This is a spin-off from other post.
This command retrieves a password from keepassxc, prints it as stdin to an openconnect (for VPN connection) command, and the process goes to the background.
sh -c '...
0
votes
0
answers
104
views
Setup a key binding to copy window content
I'm having trouble setting up a key binding to copy the content of the terminal window.
So far, the best I've got is
key_bindings:
# copy window content with F2
- { key: F2, mode: ~Search,...
3
votes
1
answer
108
views
Exit terminal after executing a command from .xbindkeysrc
I'm trying to bind a command to a key using .xbindkeysrc, namely this command retrieves a password from keepassxc, and echoes it as stdin to an openconnect (for VPN connection) command, and finally ...
0
votes
1
answer
31
views
How to jump in inner tabs inside panel vs code?
I'm trying to navigate inside workbench.action.togglePanel, but the ways I tried failed
Does anyone know how to do it? similar to
{
"key": "shift+l",
"command": &...
0
votes
1
answer
75
views
Why do my VS Code keybindings change when I open IntelliJ IDEA projects?
In VS Code, my keybindings change when I open a project.
I have enabled the "Default" profile in File > Preferences > Profile but when opening a project (IntelliJ project) the ...
0
votes
0
answers
41
views
Ctrl + Alt Short cuts not working in Terminal of Visual Studio Code via Remote SSH Connection
I want to use short cuts like Ctrl+Alt+F in the terminal of VS code, but they do not working when I try it via a remote SSH session. Short cuts only with Ctrl are working in the terminal, but as soon ...
1
vote
1
answer
79
views
Emacs, how to write a shortcut calling a function with as argument the word at the cursor position?
How do I set up a shortcut for Emacs that will call a function and take as an argument the word at the cursor position? Like alt . in rtags package.
0
votes
1
answer
84
views
How can I jump between opening and closing tags in Visual Studio?
When I code I want to jump from a closing tag of </div> or any sort of tag from the bottom to the corresponding opening tag.
I have other extension which are showing me opening and closing tags ...
0
votes
0
answers
179
views
How to change usb keyboard layout language using InputMethodService ,programmatically in Android?
I have a smart TV on android, I want to connect a usb keyboard and set up keyboard shortcuts like in Windows, so as not to feel discomfort from non-convenient (standard) keyboard shortcuts, and I also ...
2
votes
2
answers
340
views
How can I create a VS Code keyboard shortcut to change a camel-case string to sentence-case?
In VScode I need one shortcut which can split one single string (camel-case) into words with space(s).
e.g.
getCheckoutCartHelper
desired output:
Get checkout cart helper
Tried to create shortcut in ...
0
votes
1
answer
1k
views
Trigger a Lua action when pressing a key on a keyboard in Logitech G Hub
I have a Logitech G502 mouse and a G213 keyboard, and I'm looking for a way to activate an action in Lua by pressing a key.
Researching and looking for information on the matter, I found that the ...
0
votes
2
answers
90
views
Is there a NOT operator in VSCode Keybindings JSON to invert an entire "when" clause?
The "when" clause in VSCode's JSON keybindings editor is very useful, but I can't seem to find a way to reverse it. For instance, if I want an action to only work when the Terminal view is ...
0
votes
1
answer
97
views
Assigning the hat / caret / circumflex (above the tab) key as keybinding using dconf
I am trying to add a custom keybinding via the command line using dconf (on Mint 21.1 Cinnamon). I successfully managed to do that, e.g. for the keys ctrl + s, with the following lines:
dconf write /...