I have Windows+I set as a keyboard shortcut to open up chrome, but if I try to use that while keyboard focus is on VSCode with vscodevim enabled, it treats it as if I had just typed I by itself (and enters insert mode).
I'm running mate desktop manager on Arch Linux. The Win-I shortcut is set through system -> preferences -> hardware -> keyboard shortcuts.
I've tried adding the following to settings.json:
"vim.handleKeys": {
"<T-i>": false
}
I've also tried <Win-i>, <T-I>, <Win-I>, <Mod4-I>.
Is there a different syntax to specifiy windows key being pressed? Or a different way to have ideavim register that it's pressed and ignore the input? The key is displayed as Mod4 in the mate keyboard shortcuts menu.
I know I can map the chrome shortcut to something else like Alt+F3, but I'm hoping to keep it as Win+I if possible. Any help appreciated!
Try adding the following setting:
"keyboard.dispatch": "keyCode"
Restart vscode after that.
Related
Settings
IntelliJ 2019.2 (same issue in 2020.2)
elementary OS 5.1.7.
AZERTY bluetooth Keyboard (Logitech K260)
French Keyboard Layout
French Input method
No custom configuration made either in IntelliJ or in the OS
Problem
The "Move Line Up/Down" shortcut I was using on Windows (Shift + Alt + Up/Down) is not working.
Description
On intelliJ, I opened Settings/Keymap window to check the shortcut was correctly set.
When trying to redefine this shortcut, the "Alt" button was not detected when pressed.
However, I can use it on elementaryOS (e.g. Alt+Tab is working).
On intellij, I can use some other shortcuts like "Alt + Up".
My OS were recently installed.
I already tried to put UK layout/input method with no success.
Two ideas:
system settings : something i missed in keyboard settings ? Don't know much about linux configurations.
IntelliJ option i'm missing.
Thanks.
Finally found the issue.
On elementaryOS,
Go to your Keyboard settings, select "Layout" tab.
On "Switch layout" options, change the default shortcut "Alt + Shift".
Then I am able to reuse this specific shortcut in IntelliJ.
See the screenshot below to get more information:
Keyboard/Layout/Switch layout
Description
I'm using some intellij products (WebStorm, PHPStorm) and Android Studio and have the same issue with both of theses.
I have an azerty keyboard, with a french layout.
I can type without issue in these softs, but I can't activate shortcuts.
When I try to activate a shortcut (e.g ctrl+z), the activated shortcut is ctrl+w.
the shortcut is correctly triggered, but with the wrong keyboard layout. It seems that when I type, my french keyboard is used, but when I want to use a shortcut, the english layout seems to be used.
Is this a known bug (if so, I've not found any mentions about it), or did I miss something?
What I've tried
I'm running on Fedora 29, with Gnome 3.
I've tried to see if it wasn't reproductible with others softs (e.g firefox/ vscode), and I can't reproduce this.
I've tried to see if it wasn't based on my keyboard settings, so I ran xev to monitor the output of pressed keys. I can't reproduce this issue.
In intellij settings, I've tried to set Keymap > Prefer key position over key char with national layout both true and false, it doesn't seem to change anything.
Current situation
Here is an exemple of a shortcut definition in Android Studio.
I pressed A to Y keys on my french keyboard (which output A,Z,E,R,T,Y), and then press the same keys with ctrl (which output ctrl+Q instead of ctrl+A and so on)
https://imgur.com/a/U4aFd7F
Expected situation (tl;dr)
I expect that when I press ctrl+a, the shortcut triggered inside intellij products is ctrl+a instead of ctrl+q
It is indeed a known bug: https://youtrack.jetbrains.com/issue/IDEA-165950
In the bug report another workaround is mentioned for Gnome 3:
Re-order the languages in Settings > Language and Region tab, put English(US) first of the input source list.
I solved it by running setxkbmap fr. I don't know why this is required by intellij products, but it works.
I have Intellij IDEA installed on my Debian Jessie with Cinnamon. It has shortcut ALT+SHIFT+F10. The problem is that the input language change shortcut is ALT+SHIFT, so when I try to use IntelliJ shortcut it works, but it also changes the language.
Moreover, on my work computer under Windows 10, the language doesn't change. I think it is because, on Windows, language switching is performed after I release the keys, and on Debian when keys are pressed.
So how should I set language change shortcut on keyUp event? Again, my goal is to use IntelliJ ALT+SHIFT+F10 shortcut without immediate language switching (assigned to ALT+SHIFT).
Regards!
Keyboard shortcuts on Cinnamon are changed in the Keyboard Settings Screen. To begin editing shortcuts click on the menu button, navigate to preferences and scroll down until you see "Keyboard".
Note, on my system I do not have anything mapped to alt+shift so you might have another application that is listening on that key combination.
Has anyone (who is using windows) had this problem that navigate back shortcut in Android Studio is not working? The shortcut key Alt+Ctrl+Left/Right Arrow is not working, which, I guess, is because of conflicting with some graphic card's shortcut. Is there a way to get rid of that?
I tried to disable the key combination in the graphic card setting, but still not working. It's intel graphic card, btw.
Another fact is that after I remove the combination in Android studio keymap, the adding shortcut setting does not recognized the key combination.
Navigation:
Control Panel[Select large icon]> Find Intel graphics option > Open
setting screen
Just try to customize new hotkeys in Intel Graphics panel,
does not metter - disable or enable this hot keys
Just disable the hot keys from the graphics option -> Hot Keys -> Disable in the tray.
Worked for me.
Edit: Added screenshot
Actually I had to reasign this hot keys for something other, then disable
For intel graphics, right-click in desktop and choose Graphics Properties (or go Control panel and Intel graphic app) then choose to Option and support tab then hotkey manager and uncheck Hot key in top, or change keys in below.
Very similar for me:
Intel Graphics Command Center -> System -> HotKeys -> Enable System HotKeys: Off
Please note, that if it is already turned off, turn it on and off again. I'm not kidding. I had to do the same thing.
If you are using windows 10, just disable the hotkeys of Graphics
Go to Desktop.
Right-click anywhere on the desktop screen.
Select "Graphics Options" -> "Hot Keys" -> "Disable"
Solution For Ubuntu
Not all navigation keyboard shortcuts are listed in Settings GUI therefore you won't be able to unbind CTRL+ALT+←/→ from there.
Verify that CTRL+ALT+←/→ are effectively bound to "Switch to workspace left/right":
gsettings get org.gnome.desktop.wm.keybindings switch-to-workspace-left
gsettings get org.gnome.desktop.wm.keybindings switch-to-workspace-right
Unbind the shortcuts:
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "[]"
The easiest solution for any issue related to keys is to Restore Default Copy.
To restore go to File -> Settings -> Keymap -> Select Windows/Default copy (If you are using default Keymap or select your current keymap) from drop-down then click on the small settings button and select Restore Default Copy in the option.
I didn't change any setting of my Vim, but today the Backspace gets some crazy behavior. Every time when I hit it, it does not delete a character, but prints ^?. Anyone knows what is going on?
Not sure why it would randomly start doing this based on the information you gave, but trying adding this line to your .vimrc
set backspace=start,eol,indent
The problem comes from the communication between Mac Terminal the Linux Terminal.
Go to the Mac Terminal -> Preferences -> Advanced tab, check the option "Delete sends Ctrl-H". Then after I login to Linux, and Backspace works just fine in Vim.
In Mac Mavricks and Yosemite Open a terminal, then command+, for preferences, click on the profile tab, click on the -keyboard- menu, then add +
Key: very bottom, <= Delete
Modifier: ^ Control
Action: Send Text
Text: H
click Ok