IBus has the keyboard shortcut customizable through ibus-setup, or via GSettings: gsettings get .emoji hotkey (IBus is not the only XIM server out there.) However, check the XMODIFIERS and GTK_IM_MODULE environment variables for additional clues. (Normally it should show a graphical chooser but in some cases only basic IM support is available and all you get is the preedit field.) I'm guessing that this specific "input method" is part of the IBus input framework, where emoji input is built-in and the default shortcut is indeed Ctrl+period. In this case it's likely used for emoji input by name, guessing from the 'e' prefix and the keyboard shortcut. Usually it is the application toolkit such as GTK or Xlib which communicates with the IM module, telling it about text fields being in focus, etc.) (For example, a preedit dialog is used when composing Japanese text in fcitx or IBus, or when entering Unicode codepoints in GTK's Ctrl+Shift+U. This looks like the "preedit area" of some X Input Method provider, allowing you to compose a character before it gets sent to the actual input of the application. Result of ctrl-period (followed by "456") in terminal, emacs is similar: Result of ctrl-period (followed by "123") in browser location bar: But if I have an input element focused, then weird "unidentified" keys are emitted while the underlined "e" is showing. in one application and then move my cursor to another to type, the popup jumps between windows to whichever has focus (with sometimes odd side effects).įinally, some applications do see the keystroke: if I add an key event listener to a blank webpage in Chrome, as long as I don't have an input element focused, the key event is emitted exactly as I'd expect. ![]() This is clearly happening at the window-system level because if I press C. or Esc) all the underlined characters disappear with no other effect, while in the former case (Enter) they disappear but immediately send the following keystrokes. The later characters can be backspaced, but the "e" cannot, and remains until I press either Enter, Esc, or a second Ctrl-Period. If I type further characters, they show up after the underlined "e", also underlined. Instead, when I press Period while holding Ctrl, a small underlined "e" appears, either in-line when I'm in a graphical window, or as a popup on a terminal or emacs window (see images below). On this new computer there seems to be something going on at the X level (xinput? xkb?) that's intercepting the keystroke so that emacs (or most other applications) simply aren't seeing it. More detail: I'm trying to bind an emacs command to Ctrl-Period (C-.), which worked fine on a previous system. Implementations and file formats change, but command line interfaces live almost forever in the Unix/Linux tradition.How do I disable whatever X-window-system-wide setting is intercepting Ctrl-Period for some kind of special input popup? As a last resort I would modify system configuration files. If that does not work, then I attempt the desktop environment. I prefer to modify the X window system via the X11 command line interfaces. If you change srvrkeys in the GUI Settings, it shows up immediately in setxkbmap and vice versa. These settings are also available in System Settings > Input Devices > Keyboard > Advanced. I tested this with KDE on Ubuntu 14.04 LTS (Trusty). Such as /etc/X11/Xsession.d/65srvrkeys-noneĬontaining the above setxkbmap command, and make it executable with sudo chmod +x /etc/X11/Xsession.d/65srvrkeys-none.įor more information type man setxkbmap at your shell prompt or see the Xorg setxkbmap man page. ![]() To invoke when an Xsession starts, create a file in /etc/X11/Xsession.d To invoke per user, put the command in the ~/.xinitrc file. To print the current settings invoke setxkbmap -print. ![]() To return to the previous behavior of the ctrl-alt-Fn keys, and also remove all other options, such as caps:ctrl_modifier: setxkbmap -option '' ![]() The following invocation of the X11 setxkbmap command disables Ctrl-Alt-Fn console/virtual terminal switching: setxkbmap -option srvrkeys:none
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |