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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>273780</bug_id>
          
          <creation_ts>2024-05-06 10:36:11 -0700</creation_ts>
          <short_desc>REGRESSION(273922@main): [GTK] Epiphany keyboard shortcuts broken with non-Latin keyboard layout</short_desc>
          <delta_ts>2024-09-06 06:49:56 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>261348</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Michael Catanzaro">mcatanzaro</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>muziknavi</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2033494</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-05-06 10:36:11 -0700</bug_when>
    <thetext>Moving this from https://gitlab.gnome.org/GNOME/epiphany/-/issues/2312, the problem is since Epiphany 46 keyboard shortcuts no longer work when using non-Latin keyboard layouts, like Ukranian or Hebrew. Currently we only consider the keyval when activating application accelerators. We need to consider the raw keycode as well.

E.g. on a Hebrew keyboard pressing Ctrl+א should open a new tab, because the same key is used for both א and T.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2033497</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-05-06 10:40:53 -0700</bug_when>
    <thetext>(This is *sort of* a regression from 273922@main, except in practice it probably only affects Epiphany. Only matters if the application allows the web view to process key events before it allows its GtkWindow to do so, which has to be done manually.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2033499</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-05-06 10:44:36 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/28181</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2033709</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-05-07 05:34:51 -0700</bug_when>
    <thetext>Committed 278456@main (48d82b12d119): &lt;https://commits.webkit.org/278456@main&gt;

Reviewed commits have been landed. Closing PR #28181 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2049117</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-07-29 08:55:32 -0700</bug_when>
    <thetext>Reopening because something is wrong and this isn&apos;t working. See: https://gitlab.gnome.org/GNOME/epiphany/-/issues/2396</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2049925</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-07-31 14:17:12 -0700</bug_when>
    <thetext>gtk_accelerator_name_with_keycode() is returning &quot;&lt;Control&gt;hebrew_aleph&quot; which of course doesn&apos;t match any actions. So that doesn&apos;t work at all.

But three months ago, I was convinced that it did work. The question is why. Did I trick myself, or did something change?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2049933</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-07-31 14:51:10 -0700</bug_when>
    <thetext>Guess: this never worked, and I tricked myself by testing on about:overview, where the web view is not focused and not actually receiving the key press events?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2050695</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-08-05 11:04:53 -0700</bug_when>
    <thetext>I don&apos;t have a solution for this.

We might need to revert 273922@main, which would be unfortunate because that will bring back other serious bugs, but at least then all keyboard layouts would be equally broken. (I hesitate to treat non-Latin keyboard layouts worse off than Latin layouts.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2056020</commentid>
    <comment_count>8</comment_count>
    <who name="darkblaze69">muziknavi</who>
    <bug_when>2024-08-28 12:19:29 -0700</bug_when>
    <thetext>fwiw, libreoffice in gtk4 also suffers from this issue. Is it maybe more general issue in gtk4?

https://bugs.documentfoundation.org/show_bug.cgi?id=161589</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2056038</commentid>
    <comment_count>9</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-08-28 13:25:28 -0700</bug_when>
    <thetext>No, this is a WebKit bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2058185</commentid>
    <comment_count>10</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-09-06 05:38:21 -0700</bug_when>
    <thetext>Let&apos;s bring back key event reinjection to get back to the state we had before I broke Hebrew/Ukrainian keyboards. That won&apos;t work properly either, but at least it will be equally broken for everyone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2058188</commentid>
    <comment_count>11</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2024-09-06 05:56:26 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/33242</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2058194</commentid>
    <comment_count>12</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-09-06 06:49:53 -0700</bug_when>
    <thetext>Committed 283267@main (5978873cc8be): &lt;https://commits.webkit.org/283267@main&gt;

Reviewed commits have been landed. Closing PR #33242 and removing active labels.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>