pbek / QOwnNotes

QOwnNotes is a plain-text file notepad and todo-list manager with Markdown support and Nextcloud / ownCloud integration.
https://www.qownnotes.org/
GNU General Public License v2.0
4.69k stars 414 forks source link

[Xubuntu] Dead keys don’t work #1228

Open Igetin opened 5 years ago

Igetin commented 5 years ago

Expected behaviour

The according symbol should appear when a dead key is pressed twice. A modified letter should also appear if a dead key is pressed once, followed by a press of a letter key. For example, pressing the dead key with the ^ modifier and then pressing the a key should output the symbol â.

This is a fresh installation of QOwnNotes. I’m using a Finnish keyboard layout. The dead keys work properly in all of my other programs.

Actual behaviour

Whenever I try to input a symbol or a modified letter using a dead key, nothing happens.

Steps to reproduce

  1. Focus any field
  2. Press any dead key and then press a (compatible) letter key that you want to modify
    • Or alternatively, press the dead key twice to input the symbol itself

Debug information

General Info

Current Date: la kesäkuuta 29 17:47:48 2019 Version: 19.6.6 Build date: Jun 28 2019 Build number: 548 Platform: linux Operating System: Ubuntu 18.04.2 LTS Build architecture: x86_64 Current architecture: x86_64 Release: Launchpad PPA Qt Version (build): 5.9.5 Qt Version (runtime): 5.9.5 Portable mode: no Settings path / key: /home/ige/.config/PBE/QOwnNotes.conf Application database path: /home/ige/.local/share/PBE/QOwnNotes/QOwnNotes.sqlite Application arguments: QOwnNotes Qt Debug: 0 Locale (system): en_US Locale (interface): empty Icon theme: Flat-Remix-Green-Dark Notes in current note folder: 3 Enabled scripts: 0

Server Info

serverUrl: empty appIsValid: no notesPathExists: empty connectionErrorMessage: empty

Note folders

currentNoteFolderId: 1

Note folder default

id: 1 isCurrent: yes activeTagId: 0 localPath: /home/ige/documents/notes remotePath: Notes isShowSubfolders: no isUseGit: no activeNoteSubFolder name: empty database file: /home/ige/documents/notes/notes.sqlite

Enabled scripts

Settings

Editor/CurrentSchemaKey (QString): EditorColorSchema-6033d61b-cb96-46d5-a3a8-20d5172017eb LastUpdateCheck (QDateTime): 2019-06-29T17:30:55 MainWindow/mainToolBar.iconSize (int): 24 MainWindow/noteTextEdit.code.font (QString): monospace,10,-1,2,50,0,0,0,0,0 MainWindow/noteTextEdit.font (QString): Roboto,10,-1,5,50,0,0,0,0,0 MainWindow/noteTextView.code.font (QString): monospace,10,-1,2,50,0,0,0,0,0 MainWindow/noteTextView.font (QString): Roboto,10,-1,5,50,0,0,0,0,0 MainWindow/showNotesFromAllNoteSubFolders (bool): true PiwikClientId (QString): <hidden> SettingsDialog/geometry (QByteArray): <binary data> WelcomeDialog/geometry (QByteArray): <binary data> allowNoteEditing (bool): true allowOnlyOneAppInstance (bool): true appMetrics/notificationShown (bool): true cryptoKey (qlonglong): <hidden> currentNoteFolderId (int): 1 currentWorkspace (QString): initial darkMode (bool): false demoNotesCreated (bool): true disableAutomaticUpdateDialog (bool): true dockWasInitializedOnce (bool): true guiFirstRunInit (bool): true initialLayoutIdentifier (QString): full itemHeight (int): 18 markdownHighlightingEnabled (bool): true noteEditIsCentralWidget (QString): true notesPath (QString): /home/ige/documents/notes ownCloud/supportEnabled (bool): false ownCloudInfo/appIsValid (bool): false ownCloudInfo/connectionErrorMessage (QString): empty ownCloudInfo/notesPathExistsText (QString): empty ownCloudInfo/serverVersion (QString): empty showMenuBar (bool): true showStatusBar (bool): true workspace-initial/name (QString): Full workspace-initial/noteSubFolderDockWidgetVisible (QString): true workspace-initial/windowState (QByteArray): <binary data> workspaces (QStringList): initial

System environment

USER: ige LANGUAGE: en LC_TIME: fi_FI.UTF-8 XDG_SEAT: seat0 XDG_SESSION_TYPE: x11 SSH_AGENT_PID: 6124 SHLVL: 0 QT4_IM_MODULE: fcitx HOME: /home/ige DESKTOP_SESSION: xubuntu XDG_SEAT_PATH: /org/freedesktop/DisplayManager/Seat0 LC_MONETARY: fi_FI.UTF-8 DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1000/bus GLADE_MODULE_PATH: : MANDATORY_PATH: /usr/share/gconf/xubuntu.mandatory.path QT_QPA_PLATFORMTHEME: gtk2 LOGNAME: ige GTK_IM_MODULE: fcitx DEFAULTS_PATH: /usr/share/gconf/xubuntu.default.path GTK_OVERLAY_SCROLLING: 0 XDG_SESSION_ID: c2 CLUTTER_BACKEND: x11 PATH: /home/ige/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin GDM_LANG: en PAPERSIZE: a4 GLADE_PIXMAP_PATH: : S_COLORS: auto LC_ADDRESS: fi_FI.UTF-8 XDG_RUNTIME_DIR: /run/user/1000 XDG_SESSION_PATH: /org/freedesktop/DisplayManager/Session0 XDG_MENU_PREFIX: xfce- LANG: en_US.UTF-8 LC_TELEPHONE: fi_FI.UTF-8 XDG_CURRENT_DESKTOP: XFCE XDG_SESSION_DESKTOP: xubuntu XMODIFIERS: @im=fcitx XAUTHORITY: /home/ige/.Xauthority XDG_GREETER_DATA_DIR: /var/lib/lightdm-data/ige SSH_AUTH_SOCK: /run/user/1000/keyring/ssh GLADE_CATALOG_PATH: : LC_NAME: fi_FI.UTF-8 SHELL: /bin/bash QT_ACCESSIBILITY: 1 GDMSESSION: xubuntu LC_MEASUREMENT: fi_FI.UTF-8 GPG_AGENT_INFO: /run/user/1000/gnupg/S.gpg-agent:0:1 LC_IDENTIFICATION: fi_FI.UTF-8 XDG_VTNR: 7 QT_IM_MODULE: fcitx PWD: /home/ige CLUTTER_IM_MODULE: xim XDG_DATA_DIRS: /usr/share/xubuntu:/usr/share/xfce4:/home/ige/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/usr/share XDG_CONFIG_DIRS: /etc/xdg/xdg-xubuntu:/etc/xdg:/etc/xdg LC_NUMERIC: fi_FI.UTF-8 LC_PAPER: fi_FI.UTF-8 SESSION_MANAGER: local/MisterL:@/tmp/.ICE-unix/6145,unix/MisterL:/tmp/.ICE-unix/6145 DISPLAY: :0.0

pbek commented 5 years ago

QOwnNotes is using a QPlainTextEdit for editing notes, do you have by chance a similar problem with other Qt applications that are using a QTextEdit or QPlainTextEdit?

pbek commented 5 years ago

â works for me on KDE Neon with German keyboard

Igetin commented 5 years ago

Hmm, Telegram Desktop seems to use QTextEdit, and the dead keys work just fine there.

Igetin commented 5 years ago

I just tried a couple of more Qt programs and encountered the same issue in these:

So it seems to be a Qt problem indeed, not sure how Telegram Desktop handles it. On the Qt bug tracker, there are a bunch of issues on dead keys, but I couldn’t find anything related to fcitx.

pbek commented 5 years ago

Hmm, Telegram Desktop seems to use QTextEdit, and the dead keys work just fine there.

I'm not sure if they are using QTextEdit, haven't found a lot of them in https://github.com/telegramdesktop/tdesktop/search?q=qtextedit&unscoped_q=qtextedit