Ozone/Wayland: Numpad decimal key should act as the Delete key when Num Lock is disabled. [chromium/src : main]

0 views
Skip to first unread message

Orko Garai (Gerrit)

unread,
Oct 13, 2025, 8:47:52 AM (7 days ago) Oct 13
to AbdAlRahman Gad, Chromium LUCI CQ, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org
Attention needed from AbdAlRahman Gad and Max Ihlenfeldt

Orko Garai added 1 comment

File ui/ozone/platform/wayland/host/wayland_event_source.cc
Line 267, Patchset 2 (Latest): if (key_code == VKEY_DECIMAL && dom_key == DomKey::UNIDENTIFIED &&
(keyboard_modifiers_ & EF_NUM_LOCK_ON) == 0) {
key_code = VKEY_DELETE;
dom_key = DomKey::DEL;
}
Orko Garai . unresolved

While I suppose this maybe true in most cases, could there be some keyboard layouts where this isn't necessarily true? Also, would be good to understand why the lookup doesn't work in the first place, i.e. if this is a bug in libxkbcommon.

Open in Gerrit

Related details

Attention is currently required from:
  • AbdAlRahman Gad
  • Max Ihlenfeldt
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I73285131bb0de821c37571ff601e7cfe7a3517ba
Gerrit-Change-Number: 7032266
Gerrit-PatchSet: 2
Gerrit-Owner: AbdAlRahman Gad <ag...@igalia.com>
Gerrit-Reviewer: AbdAlRahman Gad <ag...@igalia.com>
Gerrit-Reviewer: Max Ihlenfeldt <m...@igalia.com>
Gerrit-Reviewer: Orko Garai <or...@igalia.com>
Gerrit-Attention: AbdAlRahman Gad <ag...@igalia.com>
Gerrit-Attention: Max Ihlenfeldt <m...@igalia.com>
Gerrit-Comment-Date: Mon, 13 Oct 2025 12:47:46 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Orko Garai (Gerrit)

unread,
Oct 16, 2025, 9:10:19 PM (4 days ago) Oct 16
to AbdAlRahman Gad, Chromium LUCI CQ, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org
Attention needed from AbdAlRahman Gad and Max Ihlenfeldt

Orko Garai added 3 comments

File ui/events/keycodes/keyboard_code_conversion_xkb.cc
Line 235, Patchset 3 (Latest): case XKB_KEY_KP_Delete:
Orko Garai . unresolved

Do we know why other numpad non-characters work when numlock is off? e.g. PgDown (instead of 3), Left arrow (instead of 4), End (instead of 1)

File ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
Line 1061, Patchset 3 (Latest): if (plain_keysym != XKB_KEY_KP_Delete && xkb_keysym != XKB_KEY_KP_Decimal &&
Orko Garai . unresolved

This still feels like a workaround that assumes a layout where decimal and delete are on the same physical key. Could we make it more generic perhaps? i.e. instead of hard-coding `plain_keysym != XKB_KEY_KP_Delete && xkb_keysym != XKB_KEY_KP_Decimal` could we instead check one of the following

  • `plain_keysym != XKB_KEY_KP_Delete && xkb_keysym != plain_keysym`
  • `IsNotPrintable(plain_keysym) && IsPrintable(xkb_keysym)`
```suggestion
if (plain_keysym != XKB_KEY_KP_Delete && xkb_keysym != plain_keysym &&
```
File ui/ozone/platform/wayland/host/wayland_event_source.cc
Line 267, Patchset 2: if (key_code == VKEY_DECIMAL && dom_key == DomKey::UNIDENTIFIED &&

(keyboard_modifiers_ & EF_NUM_LOCK_ON) == 0) {
key_code = VKEY_DELETE;
dom_key = DomKey::DEL;
}
Orko Garai . resolved

While I suppose this maybe true in most cases, could there be some keyboard layouts where this isn't necessarily true? Also, would be good to understand why the lookup doesn't work in the first place, i.e. if this is a bug in libxkbcommon.

Orko Garai

Done

Open in Gerrit

Related details

Attention is currently required from:
  • AbdAlRahman Gad
  • Max Ihlenfeldt
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I73285131bb0de821c37571ff601e7cfe7a3517ba
Gerrit-Change-Number: 7032266
Gerrit-PatchSet: 3
Gerrit-Owner: AbdAlRahman Gad <ag...@igalia.com>
Gerrit-Reviewer: AbdAlRahman Gad <ag...@igalia.com>
Gerrit-Reviewer: Max Ihlenfeldt <m...@igalia.com>
Gerrit-Reviewer: Orko Garai <or...@igalia.com>
Gerrit-Attention: AbdAlRahman Gad <ag...@igalia.com>
Gerrit-Attention: Max Ihlenfeldt <m...@igalia.com>
Gerrit-Comment-Date: Fri, 17 Oct 2025 01:10:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Orko Garai <or...@igalia.com>
satisfied_requirement
unsatisfied_requirement
open
diffy

AbdAlRahman Gad (Gerrit)

unread,
Oct 17, 2025, 8:28:10 AM (3 days ago) Oct 17
to Orko Garai, Chromium LUCI CQ, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org
Attention needed from Max Ihlenfeldt and Orko Garai

AbdAlRahman Gad added 2 comments

File ui/events/keycodes/keyboard_code_conversion_xkb.cc
Line 235, Patchset 3: case XKB_KEY_KP_Delete:
Orko Garai . resolved

Do we know why other numpad non-characters work when numlock is off? e.g. PgDown (instead of 3), Left arrow (instead of 4), End (instead of 1)

AbdAlRahman Gad
File ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
Line 1061, Patchset 3: if (plain_keysym != XKB_KEY_KP_Delete && xkb_keysym != XKB_KEY_KP_Decimal &&
Orko Garai . resolved

This still feels like a workaround that assumes a layout where decimal and delete are on the same physical key. Could we make it more generic perhaps? i.e. instead of hard-coding `plain_keysym != XKB_KEY_KP_Delete && xkb_keysym != XKB_KEY_KP_Decimal` could we instead check one of the following

  • `plain_keysym != XKB_KEY_KP_Delete && xkb_keysym != plain_keysym`
  • `IsNotPrintable(plain_keysym) && IsPrintable(xkb_keysym)`
```suggestion
if (plain_keysym != XKB_KEY_KP_Delete && xkb_keysym != plain_keysym &&
```
AbdAlRahman Gad

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Max Ihlenfeldt
  • Orko Garai
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I73285131bb0de821c37571ff601e7cfe7a3517ba
    Gerrit-Change-Number: 7032266
    Gerrit-PatchSet: 4
    Gerrit-Owner: AbdAlRahman Gad <ag...@igalia.com>
    Gerrit-Reviewer: AbdAlRahman Gad <ag...@igalia.com>
    Gerrit-Reviewer: Max Ihlenfeldt <m...@igalia.com>
    Gerrit-Reviewer: Orko Garai <or...@igalia.com>
    Gerrit-Attention: Orko Garai <or...@igalia.com>
    Gerrit-Attention: Max Ihlenfeldt <m...@igalia.com>
    Gerrit-Comment-Date: Fri, 17 Oct 2025 12:27:54 +0000
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Orko Garai (Gerrit)

    unread,
    Oct 17, 2025, 8:43:14 AM (3 days ago) Oct 17
    to AbdAlRahman Gad, Chromium LUCI CQ, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org
    Attention needed from AbdAlRahman Gad and Max Ihlenfeldt

    Orko Garai voted Code-Review+1

    Code-Review+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • AbdAlRahman Gad
    • Max Ihlenfeldt
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I73285131bb0de821c37571ff601e7cfe7a3517ba
    Gerrit-Change-Number: 7032266
    Gerrit-PatchSet: 4
    Gerrit-Owner: AbdAlRahman Gad <ag...@igalia.com>
    Gerrit-Reviewer: AbdAlRahman Gad <ag...@igalia.com>
    Gerrit-Reviewer: Max Ihlenfeldt <m...@igalia.com>
    Gerrit-Reviewer: Orko Garai <or...@igalia.com>
    Gerrit-Attention: AbdAlRahman Gad <ag...@igalia.com>
    Gerrit-Attention: Max Ihlenfeldt <m...@igalia.com>
    Gerrit-Comment-Date: Fri, 17 Oct 2025 12:43:09 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    AbdAlRahman Gad (Gerrit)

    unread,
    Oct 17, 2025, 8:55:09 AM (3 days ago) Oct 17
    to Colin Blundell, Orko Garai, Chromium LUCI CQ, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org
    Attention needed from Colin Blundell

    AbdAlRahman Gad added 1 comment

    Patchset-level comments
    File-level comment, Patchset 4 (Latest):
    AbdAlRahman Gad . resolved

    Hi, Could you please review this change!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Colin Blundell
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I73285131bb0de821c37571ff601e7cfe7a3517ba
    Gerrit-Change-Number: 7032266
    Gerrit-PatchSet: 4
    Gerrit-Owner: AbdAlRahman Gad <ag...@igalia.com>
    Gerrit-Reviewer: AbdAlRahman Gad <ag...@igalia.com>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Max Ihlenfeldt <m...@igalia.com>
    Gerrit-Reviewer: Orko Garai <or...@igalia.com>
    Gerrit-Attention: Colin Blundell <blun...@chromium.org>
    Gerrit-Comment-Date: Fri, 17 Oct 2025 12:54:51 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Colin Blundell (Gerrit)

    unread,
    Oct 17, 2025, 9:02:02 AM (3 days ago) Oct 17
    to AbdAlRahman Gad, Hidehiko Abe, Colin Blundell, Orko Garai, Chromium LUCI CQ, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org
    Attention needed from AbdAlRahman Gad and Hidehiko Abe

    Colin Blundell added 1 comment

    Patchset-level comments
    Colin Blundell . resolved

    Thanks! I have no expertise whatsoever here :P. hidehiko@, would you be a good technical reviewer for this CL?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • AbdAlRahman Gad
    • Hidehiko Abe
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I73285131bb0de821c37571ff601e7cfe7a3517ba
    Gerrit-Change-Number: 7032266
    Gerrit-PatchSet: 4
    Gerrit-Owner: AbdAlRahman Gad <ag...@igalia.com>
    Gerrit-Reviewer: AbdAlRahman Gad <ag...@igalia.com>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Hidehiko Abe <hide...@chromium.org>
    Gerrit-Reviewer: Max Ihlenfeldt <m...@igalia.com>
    Gerrit-Reviewer: Orko Garai <or...@igalia.com>
    Gerrit-Attention: AbdAlRahman Gad <ag...@igalia.com>
    Gerrit-Attention: Hidehiko Abe <hide...@chromium.org>
    Gerrit-Comment-Date: Fri, 17 Oct 2025 13:01:42 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    AbdAlRahman Gad (Gerrit)

    unread,
    4:25 PM (4 hours ago) 4:25 PM
    to Hidehiko Abe, Colin Blundell, Orko Garai, Chromium LUCI CQ, chromium...@chromium.org, max+watc...@igalia.com, nickdiego+wa...@igalia.com, ozone-...@chromium.org
    Attention needed from Hidehiko Abe

    AbdAlRahman Gad added 1 comment

    Patchset-level comments
    AbdAlRahman Gad . resolved

    Re-ping.
    Could you please take a look at this change when you have the time?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Hidehiko Abe
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I73285131bb0de821c37571ff601e7cfe7a3517ba
    Gerrit-Change-Number: 7032266
    Gerrit-PatchSet: 4
    Gerrit-Owner: AbdAlRahman Gad <ag...@igalia.com>
    Gerrit-Reviewer: AbdAlRahman Gad <ag...@igalia.com>
    Gerrit-Reviewer: Colin Blundell <blun...@chromium.org>
    Gerrit-Reviewer: Hidehiko Abe <hide...@chromium.org>
    Gerrit-Reviewer: Max Ihlenfeldt <m...@igalia.com>
    Gerrit-Reviewer: Orko Garai <or...@igalia.com>
    Gerrit-Attention: Hidehiko Abe <hide...@chromium.org>
    Gerrit-Comment-Date: Mon, 20 Oct 2025 20:25:39 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages