Home > keyboard shortcuts > alt-shift toggles keymap when part of a shortcut

alt-shift toggles keymap when part of a shortcut

February 12Hits:0
Advertisement

I have two xkb layouts, and use Alt+Shift to toggle between them:

setxkbmap "fr,us" -option grp:alt_shift_toggle 

However, when I press a shorcut which contains Alt+Shift, the shortcut isn't taken into account, and instead the layout switches. For example Alt+Shift+Left (which selects code to the matching closing paren in some editors), or Alt+Shift+% (which is search and replace in emacs, the % needing Shift on French keyboards).

This was not the case with XUbuntu 14.04 I think, but I switched to NixOs, and I now have this issue.

How can I configure setxkbmap so that it switches layouts only when Alt+Shift is not part of a shortcut, i.e. upon releasing the keys and only if there wasn't another key pressed at the same time?

Related Articles

  • alt-shift toggles keymap when part of a shortcutFebruary 12

    I have two xkb layouts, and use Alt+Shift to toggle between them: setxkbmap "fr,us" -option grp:alt_shift_toggle However, when I press a shorcut which contains Alt+Shift, the shortcut isn't taken into account, and instead the layout switches. Fo

  • Change Keyboard Layout with both left and right Alt + Shift combos

    Change Keyboard Layout with both left and right Alt + Shift combosMarch 8

    I use English and Persian keyboard layout on my Ubuntu system. I want to change the keyboard layout both with Left Alt+Left Shift and Right Alt + Right Shift. Currently I can not use Right Alt+Right Shift to change the Keyboard layout from Persian to

  • How can I have both alt + shift to change the keyboard layout, and alt + shift + tab to do reverse window switch?July 21

    On a previous version of Ubuntu/Gnome, I used to have Alt+Shift toggle the keyboard layout and Alt+Shift+Tab do the same as Alt+Tab but in the opposite direction. Right now, I can't do this: If Alt+Shift is enabled to change the keyboard layout, Alt+

  • How do I disable the alt + shift + drag shortcut in gnome?July 17

    Related to this question, but concerning the "snappy" style drag you get with alt + shift + dragging the mouse. This shortcut obscures an important feature I want to use in my IDE, so I want to disable it, by I dont see the option in dconf-edito

  • Toggling language with Alt+Shift doesn't work

    Toggling language with Alt+Shift doesn't workApril 9

    On a recent install of 10.10 i can't toggle with Alt+Shift between USA/Isr, even though i can toggle by pressing the language icon on the tool bar. Any suggestions? Thanks --------------Solutions------------- Have you checked the keyboard preferences

  • alt+shift can't be set to toggle language October 19

    This question already has an answer here: How to use Alt+Shift to switch keyboard layouts? 3 answers I recently did a fresh installation of Ubuntu 13.10; but there is something bothering me, which I don't quite understand. When I first tried to toggl

  • How can I add other languages and what are equivalent shortcuts for what "alt+shift" and "crtl+shift" does in Windows?

    How can I add other languages and what are equivalent shortcuts for what "alt+shift" and "crtl+shift" does in Windows? October 17

    I would like to type Hebrew in Ubuntu. I tried downloading the Hebrew language pack and then setting alt-shift as my layout-change shortcut in the Options section of "Keyboard Layout". However, when I actually press alt-shift, nothing happens. H

  • Other than Alt + Shift to switch keyboard layout, any other Xorg key combinations?August 14

    All I can find about XkbOptions was: Option "XKbOptions" "grp:alt_shift_toggle" Seems I can only use alt+shift combination to switch keyboard layout, any other keys that I can use ? --------------Solutions------------- From man xkeyboa

  • How to use Alt+Shift to switch keyboard layouts?

    How to use Alt+Shift to switch keyboard layouts?October 10

    I recently upgraded to Ubuntu 13.10, with the new keyboard handling system. The little "switch keyboard" option does not let me set it to Alt+Shift. How can I get this keyboard binding, as I have absolutely no interest in using the Mac-esque Sup

  • Alt+Shift layout switching problem in 13.10

    Alt+Shift layout switching problem in 13.10 October 10

    I recently upgraded to Ubuntu 13.10, with the new keyboard handling system. The little "switch keyboard" option does not let me set it to Alt+Shift. How can I get this keyboard binding, as I have absolutely no interest in using the Mac-esque Sup

  • Alt-shift: skip some of the languages?November 15

    I use alt-shift to switch between keyboard layouts in Ubuntu 14.04. I have 3 languages enabled, but I use one of them much less often. How could I make alt-shift skip the rarely used language(s)? --------------Solutions------------- How could I make

  • Why won't Alt+Shift switch languages in Microsoft Word?August 24

    I have Windows 7 RTM, Office 2007 SP1, and a computer with English and Hebrew languages installed. In most programs (e.g. notepad), Left Alt+Shift switches from Hebrew to English and vice versa. In Word, it also usually works, but sometimes pressing

  • Vista: Alt + Shift + P opens Windows Media Player; how to delete this hotkey?

    Vista: Alt + Shift + P opens Windows Media Player; how to delete this hotkey?October 21

    I just bought a new laptop, and am having to learn Vista. (My desktop has XP.) I was just trying to set some shortcut keys, and wanted to use Alt + Shift + P for Anywho.com, but to my surprise Alt + Shift + P is already taken. It calls Windows Media

  • How to remap Capslock+{?} to Ctrl+Alt+Shift+{?} in AutoHotKey?July 27

    I want to remap the Caps Lock key to send Ctrl+Alt+Shift, but I want to also send any keys that I pressed after it. For example, if I press Caps Lock+t then I want AHK to send Ctrl+Alt+Shift+t likewise, if I press Caps Lock+j then I want to send Ctrl

  • What is Alt+Shift+{?February 21

    Tested this on CentOS and Ubuntu, if you're in a directory with a ton of files $ ls day1.tar.gz day2.tar.gz day3.tar.gz day4.tar.gz day5.tar.gz day6.tar.gz day7.tar.gz day8.tar.gz day9.tar.gz day10.tar.gz And you hit Alt+Shift+{ it will awk-complete

  • Turn off international characters when I use Alt-Shift-April 20

    Whenever I press (Right Alt)-Shift and a key I get an international character for that key, for example, Alt-Shift-S gives Š and Alt-Shift-Y gives Û How do I turn this off? I normally use this combo a lot when coding in Eclipse so it's quite annoying

  • How do I turn off the alt-shift-uparrow keybinding in GNOME?May 7

    After upgrading from 10.10 to 11.04, the key sequence ALT-Shift-UpArrow now seems to have a window-manager level definition. It seems that this is a new unity key sequence. However, I'm using "Classic Ubuntu" on login - i.e. I'm using Gnome. Nev

  • Modifying keyboard layout in X11: using Alt+shift+2 for @May 13

    I'm using a MacBook with Croatian layout. Common PC Croatian layout (on Windows and in Linux) uses combinations with AltGr to get various symbols, such as... AltGr+V for @ AltGr+F for [ AltGr+B for { On OS X, this is replaced with.. Alt+Shift+2 for @

  • How to switch language spellingcheck on the fly when changing keyboard with alt-shift?May 14

    i just recently installed ubuntu 11.04, english version that comes with libreoffice. I also installed Greek language. Is there some way to make Writer recognize my input language (English - Greek) and apply spelling check on the fly, according to my

  • What does pressing Alt+Shift+3 do in Terminal?October 13

    What does pressing Alt + Shift + 3 in Terminal do? All I can see is that it prints a pound sign and jumps to the next line, but, supposedly, it does something special. --------------Solutions------------- In readline, Alt can be interpreted as \e. On

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.220 s.