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

intellij Article's
30 articles in total
Favicon
"Escapando" de IntelliJ
Favicon
Ctrl+Alt+Arrow (Right, Left) not working on IntelliJ
Favicon
The Best Free Alternative to IntelliJ HTTP Client
Favicon
How to Test APIs Visually in IntelliJ IDEA?
Favicon
Free AI Git Commit Message Plugin for JetBrains IntelliJ IDEA Using Gemini API
Favicon
IntelliJ Shortcuts (for Mac)
Favicon
Generating Flyway migrations using IntelliJ IDEA
Favicon
Unlocking the Power of IntelliJ IDEA Ultimate with the GitHub Student Developer Pack
Favicon
Java Spring Boot for Beginners: Part 2: Diving into Project Structure, REST Controllers, and Request Handling
Favicon
Automatically fix code vulnerabilities with AI
Favicon
Incredibly Useful WireMock with IntelliJ IDEA
Favicon
Git: Update remote url in your local machine
Favicon
Spring-boot-devtools for autobuilding application in IntelliJ IDE
Favicon
5 helpful plugins for IntelliJ IDEA: Enhance your Spring Boot and Java development experience
Favicon
Como configurar o IntelliJ IDEA ou Android Studio no Wayland
Favicon
Building Java Swagger 3 Intellij plugin: Boosting productivity, type safe generation and documentation adoption.
Favicon
GitHub Copilot tutorial: We’ve tested it with Java and here's how you can do it too
Favicon
Full Line Code Completion by JetBrains: A Game-Changer for Secure, AI-Assisted Coding
Favicon
Exploring Why IntelliJ IDEA Reigns Supreme as the Ultimate Java IDE
Favicon
Plugin: AnΓ‘lise de Vulnerabilidade
Favicon
Validate APIs using OpenAPI and IntelliJ HTTP Client
Favicon
How to Manage Git Branches for Jira Tickets in IntelliJ IDEA
Favicon
Create UML Class Diagrams for Java projects with IntelliJ IDEA and PlantUML
Favicon
Intellij Springboot & Maven tips and tricks
Favicon
Wednesday Links - Editon 2023-11-15
Favicon
An Investigation into Poor UX in IntelliJ Idea on Windows with Subsystem for Linux
Favicon
Enhancing team collaboration in IntelliJ IDEA with the .run directory
Favicon
Phpstorm Intellij search mode when focusing
Favicon
Generate unit tests using CodiumAI
Favicon
How to use AI for software development and cybersecurity

Featured ones: