<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>482711</bug_id>
          
          <creation_ts>2024-03-07 13:18:26 +0000</creation_ts>
          <short_desc>On Wayland, keyboard layout switches to US English after typing one character</short_desc>
          <delta_ts>2024-03-11 16:11:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Keyboard Layout widget</component>
          <version>6.0.1</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>449531</dup_id>
          <see_also>https://bugs.kde.org/show_bug.cgi?id=482593</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>wayland-only</keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Simone Lazzaris">simone</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>butirsky</cc>
    
    <cc>garirry</cc>
    
    <cc>nate</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2296231</commentid>
    <comment_count>0</comment_count>
    <who name="Simone Lazzaris">simone</who>
    <bug_when>2024-03-07 13:18:26 +0000</bug_when>
    <thetext>SUMMARY
I have a keyboard with an Italian layout, and I used to use Italian keyboard mapping. I&apos;ve upgraded to KDE6 and now I&apos;m stuck with the English layout.

STEPS TO REPRODUCE
1. Go to system settings -&gt; keyboard -&gt; mappings
2. Enable keyboard mapping
3. Add any mapping (I&apos;ve tried Italian and German)
4. Click on `apply`
5. Try to enter text using non-alphanumeric characters, and see that you&apos;re still using English layout

Note that the OSD display shows the correct language if/when &quot;switching&quot; layout using the meta/alt/k combo. The systray indicator, instead, always says &quot;EN&quot;.

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2296237</commentid>
    <comment_count>1</comment_count>
    <who name="Simone Lazzaris">simone</who>
    <bug_when>2024-03-07 13:25:54 +0000</bug_when>
    <thetext>Also note that in the system config tool, the `label` field for the mappings is shown as a couple of rectangles (like unicode missing glyphs)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2296300</commentid>
    <comment_count>2</comment_count>
    <who name="Simone Lazzaris">simone</who>
    <bug_when>2024-03-07 14:19:23 +0000</bug_when>
    <thetext>Logging out and logging back in didn&apos;t fix anything (rif. bug 482593)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2296324</commentid>
    <comment_count>3</comment_count>
    <who name="Simone Lazzaris">simone</who>
    <bug_when>2024-03-07 14:57:13 +0000</bug_when>
    <thetext>SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Archlinux
(available in About System)
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2296325</commentid>
    <comment_count>4</comment_count>
    <who name="Simone Lazzaris">simone</who>
    <bug_when>2024-03-07 14:58:54 +0000</bug_when>
    <thetext>Update: keyboard mapping is working in X11 based applications: I&apos;ve tried xterm and mattermost desktop and the keys are in the correct nationalization.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2296537</commentid>
    <comment_count>5</comment_count>
    <who name="Simone Lazzaris">simone</who>
    <bug_when>2024-03-07 18:59:12 +0000</bug_when>
    <thetext>Another update: the very first keystroke sent to a new application is actually correct: the character typed is the one corresponding to my selected mapping. But only the first one; all subsequent characters are taken from the US layout.
Very very odd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2297504</commentid>
    <comment_count>6</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-03-08 22:36:28 +0000</bug_when>
    <thetext>Very odd indeed. It feels like two things are competing for keyboard control. Does this happen in a new clean user account?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2297572</commentid>
    <comment_count>7</comment_count>
    <who name="Simone Lazzaris">simone</who>
    <bug_when>2024-03-08 23:47:40 +0000</bug_when>
    <thetext>No, on a clean account  I can use the first mapping (Italian in my case).
I still can&apos;t switch mapping, I&apos;ll try to see if that still persist after a reboot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2297916</commentid>
    <comment_count>8</comment_count>
    <who name="Garirry">garirry</who>
    <bug_when>2024-03-09 16:57:04 +0000</bug_when>
    <thetext>I have a similar issue on X11. Sometimes it is possible to switch to another language but it resets when clicking out of the textbox, sometimes it switches back after typing one character, and other times it is impossible to switch. I found out also that keeping a single non-English layout sometimes causes US English to re-add itself in the layout settings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2298588</commentid>
    <comment_count>9</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-03-10 22:12:10 +0000</bug_when>
    <thetext>Can you be very precise about how exactly you&apos;re switching layouts?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2298912</commentid>
    <comment_count>10</comment_count>
    <who name="Simone Lazzaris">simone</who>
    <bug_when>2024-03-11 13:46:53 +0000</bug_when>
    <thetext>After a reboot, the language indicator in the systray area works, I can switch languages clicking on it or using the hotkeys.
It seems that you need to restart plasma to make that indicator works as intended.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2298915</commentid>
    <comment_count>11</comment_count>
    <who name="Simone Lazzaris">simone</who>
    <bug_when>2024-03-11 13:51:10 +0000</bug_when>
    <thetext>So, to recap:
- existing user, upgraded from kde5 to kde6: keyboard stuck in US English using wayland, works using X11
- new user, on wayland, without a restart: first mapping works immediately after being configured, indicator in systray area not present, can&apos;t switch using hotkeys (alt-meta-k in my case)
- new user, on wayland, after a plasma restart: everything works</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2298991</commentid>
    <comment_count>12</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-03-11 16:11:48 +0000</bug_when>
    <thetext>It sounds like most of these issues are just Bug 449531. The issue with existing user configuration is probably not anything we can do anything about unfortunately. The good news is that Bug 449531 is in progress, so let&apos;s get that fixed and then follow up using on any remaining issues once that&apos;s done using new bug reports. Thanks!

*** This bug has been marked as a duplicate of bug 449531 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>