Return printable character when Ctrl+2 is pressed [chromium/src : main]

0 views
Skip to first unread message

Hyomin Kim (Gerrit)

unread,
Jul 25, 2023, 8:01:48 PMJul 25
to ozone-...@chromium.org

Attention is currently required from: Hyomin Kim.

Hyomin Kim uploaded patch set #4 to this change.

View Change

Return printable character when Ctrl+2 is pressed



Bug: 1410732
Change-Id: Id2282448454e178803ef192aacb5fca31fee5c5d
---
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
1 file changed, 1 insertion(+), 1 deletion(-)

To view, visit change 4714468. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id2282448454e178803ef192aacb5fca31fee5c5d
Gerrit-Change-Number: 4714468
Gerrit-PatchSet: 4
Gerrit-Owner: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Attention: Hyomin Kim <hyoput...@samsung.com>

Hyomin Kim (Gerrit)

unread,
Jul 25, 2023, 9:06:17 PMJul 25
to ozone-...@chromium.org

Attention is currently required from: Hyomin Kim.

Hyomin Kim uploaded patch set #5 to this change.

View Change

Return printable character when Ctrl+2 is pressed

When Ctrl+2 is pressed, the return value from XKB is 0,
referring to [0]. So condition [1] has to be skipped
in this case. In order to get [2] to return the printable
character.

[0]
https://github.com/xkbcommon/libxkbcommon/blob/master/src/state.c#L899

[1]
ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc;l=824

[2]



Bug: 1410732
Change-Id: Id2282448454e178803ef192aacb5fca31fee5c5d
---
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
1 file changed, 1 insertion(+), 1 deletion(-)

To view, visit change 4714468. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id2282448454e178803ef192aacb5fca31fee5c5d
Gerrit-Change-Number: 4714468
Gerrit-PatchSet: 5

Hyomin Kim (Gerrit)

unread,
Jul 25, 2023, 9:06:32 PMJul 25
to ozone-...@chromium.org

Attention is currently required from: Hyomin Kim.

Hyomin Kim uploaded patch set #6 to this change.

View Change

Return printable character when Ctrl+2 is pressed

When Ctrl+2 is pressed, the return value from XKB is 0,
referring to [0]. So condition [1] has to be skipped
in this case. In order to get [2] to return the printable
character.

[0]
https://github.com/xkbcommon/libxkbcommon/blob/master/src/state.c#L899

[1]
src/+/main:ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc;l=824

[2]


Bug: 1410732
Change-Id: Id2282448454e178803ef192aacb5fca31fee5c5d
---
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
1 file changed, 1 insertion(+), 1 deletion(-)

To view, visit change 4714468. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id2282448454e178803ef192aacb5fca31fee5c5d
Gerrit-Change-Number: 4714468
Gerrit-PatchSet: 6

Hyomin Kim (Gerrit)

unread,
Jul 25, 2023, 9:07:17 PMJul 25
to ozone-...@chromium.org

Attention is currently required from: Hyomin Kim.

Hyomin Kim uploaded patch set #7 to this change.

View Change

Return printable character when Ctrl+2 is pressed

When Ctrl+2 is pressed, the return value from XKB is 0,
referring to [0]. So condition [1] has to be skipped
in this case. In order to get [2] to return the printable
character.

[0]
https://github.com/xkbcommon/libxkbcommon/blob/master/src/state.c#L899

[1]


Bug: 1410732
Change-Id: Id2282448454e178803ef192aacb5fca31fee5c5d
---
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
1 file changed, 1 insertion(+), 1 deletion(-)

To view, visit change 4714468. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id2282448454e178803ef192aacb5fca31fee5c5d
Gerrit-Change-Number: 4714468
Gerrit-PatchSet: 7

Hyomin Kim (Gerrit)

unread,
Jul 25, 2023, 9:35:32 PMJul 25
to Michael Spang, Rob Schonberger, ozone-...@chromium.org

Attention is currently required from: Michael Spang, Rob Schonberger.

Hyomin Kim would like Michael Spang and Rob Schonberger to review this change.

View Change

Return printable character when Ctrl+2 is pressed

When Ctrl+2 is pressed, the return value from XKB is 0,
referring to [0]. So condition [1] has to be skipped
in this case. In order to get [2] to return the printable
character.

[0]
https://github.com/xkbcommon/libxkbcommon/blob/master/src/state.c#L899

[1]
https://source.chromium.org/chromium/chromium/src/+/main:ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc;l=824

[2]
https://source.chromium.org/chromium/chromium/src/+/main:ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc;l=837

Bug: 1410732
Change-Id: Id2282448454e178803ef192aacb5fca31fee5c5d
---
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc b/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
index 229193eb..11b1147 100644
--- a/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
+++ b/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
@@ -821,7 +821,7 @@
*key_code = DomCodeToUsLayoutNonLocatedKeyboardCode(dom_code);
return true;
}
- if (character == 0) {
+ if (character == 0 && !(dom_code == DomCode::DIGIT2 && (flags & EF_CONTROL_DOWN))){
*dom_key = DomKey::UNIDENTIFIED;
*key_code = DomCodeToUsLayoutNonLocatedKeyboardCode(dom_code);
return true;

To view, visit change 4714468. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Id2282448454e178803ef192aacb5fca31fee5c5d
Gerrit-Change-Number: 4714468
Gerrit-PatchSet: 7
Gerrit-Owner: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Michael Spang <sp...@chromium.org>
Gerrit-Reviewer: Rob Schonberger <ro...@chromium.org>
Gerrit-Attention: Michael Spang <sp...@chromium.org>
Gerrit-Attention: Rob Schonberger <ro...@chromium.org>

Hyomin Kim (Gerrit)

unread,
Jul 26, 2023, 7:46:57 PMJul 26
to ozone-...@chromium.org, Michael Spang, Rob Schonberger, Chromium LUCI CQ, chromium...@chromium.org

Hyomin Kim abandoned this change.

View Change

Abandoned

To view, visit change 4714468. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: abandon

Hyomin Kim (Gerrit)

unread,
Jul 26, 2023, 7:48:56 PMJul 26
to ozone-...@chromium.org

Hyomin Kim uploaded patch set #3 to this change.

View Change

Return printable character when Ctrl+2 is pressed

When Ctrl+2 is pressed, the return value from XKB is 0,
referring to [0]. So condition [1] has to be skipped
in this case. In order to get [2] to return the printable
character.

[0]
https://github.com/xkbcommon/libxkbcommon/blob/master/src/state.c#L899

[1]
https://source.chromium.org/chromium/chromium/src/+/main:ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc;l=824

[2]
https://source.chromium.org/chromium/chromium/src/+/main:ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc;l=837

Bug: 1410732

Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
---
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
1 file changed, 2 insertions(+), 1 deletion(-)

To view, visit change 4721787. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
Gerrit-Change-Number: 4721787
Gerrit-PatchSet: 3
Gerrit-Owner: Hyomin Kim <hyoput...@samsung.com>

Hyomin Kim (Gerrit)

unread,
Jul 26, 2023, 7:55:18 PMJul 26
to Robert Kroeger, Scott Violet, ozone-...@chromium.org

Attention is currently required from: Robert Kroeger, Scott Violet.

Hyomin Kim would like Robert Kroeger and Scott Violet to review this change.

View Change

Return printable character when Ctrl+2 is pressed

When Ctrl+2 is pressed, the return value from XKB is 0,
referring to [0]. So condition [1] has to be skipped
in this case. In order to get [2] to return the printable
character.

[0]
https://github.com/xkbcommon/libxkbcommon/blob/master/src/state.c#L899

[1]
https://source.chromium.org/chromium/chromium/src/+/main:ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc;l=824

[2]
https://source.chromium.org/chromium/chromium/src/+/main:ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc;l=837

Bug: 1410732

Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
---
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc b/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
index 229193eb..1be068b3 100644
--- a/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
+++ b/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
@@ -821,7 +821,8 @@

*key_code = DomCodeToUsLayoutNonLocatedKeyboardCode(dom_code);
return true;
}
- if (character == 0) {
+ if (character == 0 &&
+        !(dom_code == DomCode::DIGIT2 && (flags & EF_CONTROL_DOWN))) {

*dom_key = DomKey::UNIDENTIFIED;
*key_code = DomCodeToUsLayoutNonLocatedKeyboardCode(dom_code);
return true;

To view, visit change 4721787. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
Gerrit-Change-Number: 4721787
Gerrit-PatchSet: 3
Gerrit-Owner: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Reviewer: Scott Violet <s...@chromium.org>
Gerrit-Attention: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Scott Violet <s...@chromium.org>

Scott Violet (Gerrit)

unread,
Jul 27, 2023, 11:41:04 AMJul 27
to Hyomin Kim, ozone-...@chromium.org, Robert Kroeger, Scott Violet, chromium...@chromium.org

Attention is currently required from: Hyomin Kim, Robert Kroeger.

View Change

1 comment:

  • File ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc:

    • Patch Set #3, Line 824: if (character == 0 &&

      Why is control-2 special? What spec/doc necessitates it being handled differently?

To view, visit change 4721787. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
Gerrit-Change-Number: 4721787
Gerrit-PatchSet: 3
Gerrit-Owner: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Reviewer: Scott Violet <s...@chromium.org>
Gerrit-Attention: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Comment-Date: Thu, 27 Jul 2023 15:40:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Hyomin Kim (Gerrit)

unread,
Sep 21, 2023, 4:12:59 AMSep 21
to ozone-...@chromium.org

Attention is currently required from: Robert Kroeger.

Hyomin Kim uploaded patch set #5 to this change.

View Change

Return printable character when Ctrl+2 is pressed

When Ctrl+2 is pressed, the return value from XKB is 0,
referring to [0]. So condition [1] has to be skipped
in this case. In order to get [2] to return the printable
character.

[0]
https://github.com/xkbcommon/libxkbcommon/blob/master/src/state.c#L899

[1]
https://source.chromium.org/chromium/chromium/src/+/main:ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc;l=824

[2]
https://source.chromium.org/chromium/chromium/src/+/main:ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc;l=837

Bug: 1410732

Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
---
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
1 file changed, 1 insertion(+), 1 deletion(-)

To view, visit change 4721787. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
Gerrit-Change-Number: 4721787
Gerrit-PatchSet: 5

Hyomin Kim (Gerrit)

unread,
Sep 24, 2023, 9:05:03 PMSep 24
to ozone-...@chromium.org

Attention is currently required from: Hyomin Kim, Robert Kroeger.

Hyomin Kim uploaded patch set #6 to this change.

View Change

The following approvals got outdated and were removed: Commit-Queue+1 by Hyomin Kim

Return printable character when Ctrl+2 is pressed

When Ctrl+2 is pressed, the return value from XKB is 0,
referring to [0]. So condition [1] has to be skipped
in this case. In order to get [2] to return the printable
character.

[0]
https://github.com/xkbcommon/libxkbcommon/blob/master/src/state.c#L899

[1]
https://source.chromium.org/chromium/chromium/src/+/main:ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc;l=824

[2]
https://source.chromium.org/chromium/chromium/src/+/main:ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc;l=837

Bug: 1410732

Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
---
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
1 file changed, 2 insertions(+), 2 deletions(-)

To view, visit change 4721787. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
Gerrit-Change-Number: 4721787
Gerrit-PatchSet: 6
Gerrit-Owner: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Reviewer: Scott Violet <s...@chromium.org>
Gerrit-Attention: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Hyomin Kim <hyoput...@samsung.com>

Hyomin Kim (Gerrit)

unread,
Sep 24, 2023, 9:17:35 PMSep 24
to ozone-...@chromium.org

Attention is currently required from: Robert Kroeger.

Hyomin Kim uploaded patch set #7 to this change.

View Change

Return printable character when Ctrl+2 is pressed

The control modifier of 2(^2) should be treated as same as the one of atsign(^@), which is NULL. Please refer to the issue of libXKBCommon[0] for further information

[0]
https://github.com/xkbcommon/libxkbcommon/issues/368


Bug: 1410732

Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
---
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
1 file changed, 2 insertions(+), 2 deletions(-)

To view, visit change 4721787. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newpatchset
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
Gerrit-Change-Number: 4721787
Gerrit-PatchSet: 7

Hyomin Kim (Gerrit)

unread,
Sep 24, 2023, 10:33:27 PMSep 24
to ozone-...@chromium.org, Chromium LUCI CQ, Robert Kroeger, Scott Violet, chromium...@chromium.org

Attention is currently required from: Robert Kroeger, Scott Violet.

Patch set 7:Commit-Queue +1

View Change

1 comment:

  • File ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc:

    • Patch Set #3, Line 824: if (character == 0 &&

      Why is control-2 special? What spec/doc necessitates it being handled differently?

    • As I mentioned in the commit message, control+2 has to be treated as control+@. Please refer to the issue above.a

To view, visit change 4721787. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
Gerrit-Change-Number: 4721787
Gerrit-PatchSet: 7
Gerrit-Owner: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Reviewer: Scott Violet <s...@chromium.org>
Gerrit-Attention: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Scott Violet <s...@chromium.org>
Gerrit-Comment-Date: Mon, 25 Sep 2023 02:33:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Scott Violet <s...@chromium.org>

Scott Violet (Gerrit)

unread,
Sep 28, 2023, 12:50:53 PMSep 28
to Michael Spang, ozone-...@chromium.org, Hyomin Kim, Robert Kroeger, Scott Violet

Attention is currently required from: Hyomin Kim, Michael Spang, Robert Kroeger.

Scott Violet would like Michael Spang to review this change authored by Hyomin Kim.

View Change

Return printable character when Ctrl+2 is pressed

The control modifier of 2(^2) should be treated as same as the one of atsign(^@), which is NULL. Please refer to the issue of libXKBCommon[0] for further information

[0]
https://github.com/xkbcommon/libxkbcommon/issues/368

Bug: 1410732

Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
---
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc b/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
index 229193eb..d8633d6 100644
--- a/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
+++ b/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
@@ -812,8 +812,8 @@
#endif // BUILDFLAG(IS_CHROMEOS)

// Classify the keysym and convert to DOM and VKEY representations.
- if (xkb_keysym != XKB_KEY_at || (flags & EF_CONTROL_DOWN) == 0) {
- // Non-character key. (We only support NUL as ^@.)
+ if (dom_code != DomCode::DIGIT2 || (flags & EF_CONTROL_DOWN) == 0) {
+ // Non-character key. (We only support NUL as ^@ and ^2.)
*dom_key = NonPrintableXKeySymToDomKey(xkb_keysym);
if (*dom_key != DomKey::NONE) {
*key_code = NonPrintableDomKeyToKeyboardCode(*dom_key);

To view, visit change 4721787. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
Gerrit-Change-Number: 4721787
Gerrit-PatchSet: 7
Gerrit-Owner: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Michael Spang <sp...@chromium.org>
Gerrit-Reviewer: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Reviewer: Scott Violet <s...@chromium.org>
Gerrit-Attention: Michael Spang <sp...@chromium.org>
Gerrit-Attention: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Hyomin Kim <hyoput...@samsung.com>

Scott Violet (Gerrit)

unread,
Sep 28, 2023, 12:51:03 PMSep 28
to Hyomin Kim, ozone-...@chromium.org, Michael Spang, Chromium LUCI CQ, Robert Kroeger, Scott Violet, chromium...@chromium.org

Attention is currently required from: Hyomin Kim, Michael Spang, Robert Kroeger.

View Change

1 comment:

  • Patchset:

To view, visit change 4721787. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
Gerrit-Change-Number: 4721787
Gerrit-PatchSet: 7
Gerrit-Owner: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Michael Spang <sp...@chromium.org>
Gerrit-Reviewer: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Reviewer: Scott Violet <s...@chromium.org>
Gerrit-Attention: Michael Spang <sp...@chromium.org>
Gerrit-Attention: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Attention: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Comment-Date: Thu, 28 Sep 2023 16:50:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Robert Kroeger (Gerrit)

unread,
Sep 29, 2023, 10:18:47 AMSep 29
to ozone-...@chromium.org, Hyomin Kim, Michael Spang, Scott Violet

Attention is currently required from: Hyomin Kim, Michael Spang.

Hyomin Kim has uploaded this change for review.

View Change

Return printable character when Ctrl+2 is pressed

The control modifier of 2(^2) should be treated as same as the one of atsign(^@), which is NULL. Please refer to the issue of libXKBCommon[0] for further information

[0]
https://github.com/xkbcommon/libxkbcommon/issues/368

Bug: 1410732

Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
---
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc b/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
index 229193eb..d8633d6 100644
--- a/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
+++ b/ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc
@@ -812,8 +812,8 @@
#endif // BUILDFLAG(IS_CHROMEOS)

// Classify the keysym and convert to DOM and VKEY representations.
- if (xkb_keysym != XKB_KEY_at || (flags & EF_CONTROL_DOWN) == 0) {
- // Non-character key. (We only support NUL as ^@.)
+ if (dom_code != DomCode::DIGIT2 || (flags & EF_CONTROL_DOWN) == 0) {
+ // Non-character key. (We only support NUL as ^@ and ^2.)
*dom_key = NonPrintableXKeySymToDomKey(xkb_keysym);
if (*dom_key != DomKey::NONE) {
*key_code = NonPrintableDomKeyToKeyboardCode(*dom_key);

To view, visit change 4721787. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
Gerrit-Change-Number: 4721787
Gerrit-PatchSet: 7
Gerrit-Owner: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Michael Spang <sp...@chromium.org>
Gerrit-Reviewer: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Reviewer: Scott Violet <s...@chromium.org>
Gerrit-CC: Kevin Schoedel <kpsch...@chromium.org>
Gerrit-Attention: Michael Spang <sp...@chromium.org>
Gerrit-Attention: Hyomin Kim <hyoput...@samsung.com>

Robert Kroeger (Gerrit)

unread,
Sep 29, 2023, 10:18:54 AMSep 29
to Hyomin Kim, ozone-...@chromium.org, Michael Spang, Chromium LUCI CQ, Scott Violet, chromium...@chromium.org

Attention is currently required from: Hyomin Kim, Michael Spang.

View Change

1 comment:

To view, visit change 4721787. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
Gerrit-Change-Number: 4721787
Gerrit-PatchSet: 7
Gerrit-Owner: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Michael Spang <sp...@chromium.org>
Gerrit-Reviewer: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Reviewer: Scott Violet <s...@chromium.org>
Gerrit-CC: Kevin Schoedel <kpsch...@chromium.org>
Gerrit-Attention: Michael Spang <sp...@chromium.org>
Gerrit-Attention: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Comment-Date: Fri, 29 Sep 2023 14:18:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No

Michael Spang (Gerrit)

unread,
Sep 29, 2023, 4:49:24 PMSep 29
to Hyomin Kim, ozone-...@chromium.org, Chromium LUCI CQ, Robert Kroeger, Scott Violet, chromium...@chromium.org

Attention is currently required from: Hyomin Kim, Scott Violet.

View Change

1 comment:

  • Patchset:

    • Patch Set #7:

      +spang Michael, are you familiar with this area?

      Not at this level of detail, I would definitely ask Kevin.

To view, visit change 4721787. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I5385ec8d64ad1da27571c4b6f02911e6e27e46f8
Gerrit-Change-Number: 4721787
Gerrit-PatchSet: 7
Gerrit-Owner: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Reviewer: Michael Spang <sp...@chromium.org>
Gerrit-Reviewer: Robert Kroeger <rjkr...@chromium.org>
Gerrit-Reviewer: Scott Violet <s...@chromium.org>
Gerrit-CC: Kevin Schoedel <kpsch...@chromium.org>
Gerrit-Attention: Scott Violet <s...@chromium.org>
Gerrit-Attention: Hyomin Kim <hyoput...@samsung.com>
Gerrit-Comment-Date: Fri, 29 Sep 2023 20:49:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Scott Violet <s...@chromium.org>
Reply all
Reply to author
Forward
0 new messages