Cinnamon input language change on UP key event - linux

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.

Related

Alt button not detected on some keymap shortcut IntelliJ (elementaryOS 5.1.7

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

Can VSCodeVim Ignore Windows Key Combination?

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.

Can't activate shortcut on intellij products

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.

Can I use a keyboard shortcut to save work in Matlab on Linux?

All Windows editing programs allow you to save your work by pressing Ctrl-S. Linux has an independently developed and mostly different set of keyboard shortcuts from what's standard in Windows. I am learning some of the Linux shortcuts as I program Matlab (by GUI, opened from BASH), but I can't find any shortcut to save the code I'm on, the equivalent of Ctrl-S.
Is there anything, or in this operating system that hosts Emacs, which focuses its keyboard shortcuts on not having to move the hands at all, is the only way to save code by moving my hand to the mouse?
From http://www.mathworks.com/help/matlab/matlab_env/keyboard-shortcuts.html#br7ulae-1, you can go to:
Preferences > MATLAB > Keyboard > Shortcuts > Active settings
and change your keyboard shortcuts to the Windows Default Set.

Can I assign custom keyboard shortcuts for menu items in applications on Ubuntu?

OSX allows user to add custom keyboard shortcuts for menu items. For instance you can define a custom keyboard shortcut for "Copy" and it will work for every application that has a menu item called Copy.
Is there a way to do this for GTK and/or KDE applications?
For KDE applications, it is possible for common keyboard shortcuts. To do this, open systemsettings and navigate to Standard Keyboard Shortcuts.
For example, here I change the shortcut for "activate next tab" to Ctrl-Tab (for consistency with Firefox):
This changes the shortcut in most tabbed KDE applications as well as tabbed dialog boxes. You can specify up to 2 alternative shortcuts for each action.
However, this only works for common shortcuts; you can't globally specify shortcuts for arbitrary menu-item captions.
I don't think GNOME applications have any such feature. You have to change the shortcuts individually (for each application). (Generally KDE is more customizable.)
Is there a way to set an absolute keyboard shortcut for an arbitrary menu item name that will be honored by any GTK+ application?
No.
Can you set a different global shortcut for Cut/Copy/Paste?
I suspect so. I didn't do the reading, but here's two promising links: making keyboard shortcuts in linux as uniform as the mac and change default/preference keyboard shortcuts like copy & paste
You can of course modify GTK+ applications to tweak their shortcuts. In the case of a GTK+ application whose GUI was designed with Glade, e.g. virt-manager, this could be ridiculously trivial.
I suggest you to take a look at xbindkeys and xdotool. Those are the automation tools which can help you to simulate certain keystrokes with customized shortcut.
By this means, though you don't really modify the original shortcuts, but you can still make your desired key combinations functional.

Resources