Logo

dev-resources.site

for different kinds of informations.

Ctrl+Alt+Arrow (Right, Left) not working on IntelliJ

Published at
12/11/2024
Categories
gnulinux
gnome
intellij
tip
Author
habutre
Categories
4 categories in total
gnulinux
open
gnome
open
intellij
open
tip
open
Author
7 person written this
habutre
open
Ctrl+Alt+Arrow (Right, Left) not working on IntelliJ

This post aims to be just a quick tip for those facing the same issue as I was facing.
It seems just a stupid and not critical issue but it affects my productivity quite a lot and searching around I couldn't find a help directly to my problem but combining tips and and there I was able to figure out my issue

Lately I decide to refresh all my laptops to GNU Arch Linux installations before I used to have Kali, Manjaro and Arch. Now I have streamlined my installations and yeah the family at home had to overcome any barrier of using a GNU Linux box, even my little that is going to turn seven. For my surprise one of the my shortcuts were not working as usually does before

Going directly to the problem the configurations on my system was hiding some shortcut configs so it took me some time to realize that something was not correct
There is a very common shortcut conflict between Gnome and IntelliJ (when using the Xwin keymap). Gnome workspace switch to left|right (Settings -> Keyboard -> Keyboard Shortcuts) shares the same key combination* as IntelliJ (Xwin) navigate back and forward (File -> Navigate -> Back|Forward) which is the subject of this post

Image description

As one can see the configuration only shows one shortcut assigned to switching workspaces, when in fact 3 was set for moving to right and other 3 to left. The only way to discover it was to follow some tips like here and check the shortcuts under the table

user> $ gsettings get org.gnome.desktop.wm.keybindings \
switch-to-workspace-left
['<Super>Page_Up', '<Super><Alt>Left', '<Control><Alt>Left']
Enter fullscreen mode Exit fullscreen mode
user> $ gsettings get org.gnome.desktop.wm.keybindings \
switch-to-workspace-right 
['<Super>Page_Down', '<Super><Alt>Right', '<Control><Alt>Right']
Enter fullscreen mode Exit fullscreen mode

So as one can realize the configuration is shown in the screen only the first shortcut <Super>Page_Down and <Super>Page_Up but in the end other shortcuts were there hidden and provoking the malfunctioning behavior

Fixing is pretty easy when you know the reason, so just matter of remove/add the desired shortcuts

user> $ gsettings set org.gnome.desktop.wm.keybindings \
switch-to-workspace-right "['<Super>Page_Down', '<Super><Alt>Right']"
Enter fullscreen mode Exit fullscreen mode
user> $ gsettings set org.gnome.desktop.wm.keybindings \
switch-to-workspace-left "['<Super>Page_Up', '<Super><Alt>Left']"
Enter fullscreen mode Exit fullscreen mode

The final result was that everything works as expected and may be the next step suggest or even add contributions to Gnome project to have all shortcuts displayed in the configuration to prevent issues like this

* Ctrl+Alt+Left, Ctrl+Alt+Right

tip Article's
30 articles in total
Favicon
Ctrl+Alt+Arrow (Right, Left) not working on IntelliJ
Favicon
if locals == globals
Favicon
Version Control Best Practices with Git and GitHub
Favicon
Creating generic types for API (backend) responses
Favicon
Null or Nothing? Unmasking the Mystery of Parameters in Dart
Favicon
List of prompts for successful affiliate marketing
Favicon
My impressions about the book The Clean Coder ๐Ÿงน๐Ÿ“š
Favicon
Why You Should Use GraphQL Playground โฐ
Favicon
Automate WEBP To PNG With A Simple .Bat File
Favicon
In CMS Made Simple, how do you change the theme?
Favicon
A importancia de fazer testes
Favicon
Conditional Styles with CSS :has
Favicon
Do you know that 0.1 + 0.2 is not equal to 0.3?
Favicon
How to save datetime data that is relevant to multiple countries or timeย zones?
Favicon
What I've Learned About Git from Senior Colleagues (Part 1 - git stash)
Favicon
A (somewhat) deep dive into TypeScript constructor intricacies, step-by-step
Favicon
Faster Color picking in Tailwind
Favicon
Evita usar UpperCase o LowerCase C#
Favicon
#DeveloperTipOfTheWeek - Application Security
Favicon
Running out of space on a developer's machine
Favicon
Alert vs confirm in javascript
Favicon
Quick Tip: Counting up to a limit
Favicon
Quick Tip: findFile
Favicon
Time Saving Tip #2 - User Snippets in VSCode
Favicon
Notify Yourself After Completing a Long-Running Bash Process
Favicon
Time Saving Tip #1 - Use Voice Dictation
Favicon
๐Ÿš€ Unveiling the Power of OpenSearch in 202$: A Comprehensive Overview๐Ÿ˜Ž
Favicon
Quick Tip: Checking if a Number is in Range
Favicon
Building a TypeScript Simple Channel (Like Golang)
Favicon
Ubuntu Minimal Install

Featured ones: