Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Issue 1458203003: MacKeyboard: Don't generate keypress for non-printable char (Closed)

Created:
5 years, 1 month ago by chongz
Modified:
5 years ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, nona+watch_chromium.org, shuchen+watch_chromium.org, James Su, vmpstr+watch_chromium.org, yusukes+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacKeyboard: Don't generate keypress for non-printable char ---Before CL: Press Delete: Linux: keypress (charCode=127) Windows, Mac: no keypress Press Ctrl+Delete: (or Fn+Ctrl+Delete on Mac) Mac: keypress (charCode=0xF728) Windows, Linux: no keypress Press Ctrl+F12: Mac: keypress (charCode=0xF70F) Window, Linux: no keypress ---After CL: no keypress for everyone BUG=459089 Committed: https://crrev.com/0cb4bd70989a22ea2e31590f291c0b2cc7d27433 Cr-Commit-Position: refs/heads/master@{#366205} Committed: https://crrev.com/c8bec73a8b23de3fe11b4cbc2fb9fa0c0020e5c0 Cr-Commit-Position: refs/heads/master@{#366461}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Moved StringIsPrintable and Updated Tests #

Patch Set 3 : Filter more private use characters #

Total comments: 9

Patch Set 4 : erikchen and dtapuska's review #

Total comments: 1

Patch Set 5 : Fixed if-else style, added layout tests #

Patch Set 6 : Added a comparison test case #

Patch Set 7 : Removed incorrect layout tests #

Patch Set 8 : Suppress NSDeleteFunctionKey on Mac-side #

Patch Set 9 : Rebase and use new ShutdownAndDestroyWidget() method #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -11 lines) Patch
M content/browser/renderer_host/input/web_input_event_builders_mac.mm View 1 2 3 4 5 6 7 2 chunks +20 lines, -10 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac_unittest.mm View 1 2 3 4 5 6 7 8 2 chunks +62 lines, -0 lines 0 comments Download

Messages

Total messages: 48 (17 generated)
dtapuska
https://codereview.chromium.org/1458203003/diff/1/base/mac/mac_util.h File base/mac/mac_util.h (right): https://codereview.chromium.org/1458203003/diff/1/base/mac/mac_util.h#newcode125 base/mac/mac_util.h:125: BASE_EXPORT bool StringIsPrintable(NSString* s); This is too generic in ...
5 years, 1 month ago (2015-11-23 14:42:08 UTC) #3
chongz
On 2015/11/23 14:42:08, dtapuska wrote: > https://codereview.chromium.org/1458203003/diff/1/base/mac/mac_util.h > File base/mac/mac_util.h (right): > > https://codereview.chromium.org/1458203003/diff/1/base/mac/mac_util.h#newcode125 > ...
5 years, 1 month ago (2015-11-24 03:21:18 UTC) #4
chongz
5 years ago (2015-11-24 20:07:24 UTC) #5
dtapuska
On 2015/11/24 20:07:24, chongz wrote: lgtm
5 years ago (2015-11-24 21:41:33 UTC) #6
ccameron
->erickchen, since he wrote EventIsReservedBySystem, which looks to be the mechanism that we should be ...
5 years ago (2015-11-30 20:37:57 UTC) #9
erikchen
On 2015/11/30 20:37:57, ccameron wrote: > ->erickchen, since he wrote EventIsReservedBySystem, which looks to be ...
5 years ago (2015-11-30 21:51:53 UTC) #10
chongz
On 2015/11/30 21:51:53, erikchen wrote: > On 2015/11/30 20:37:57, ccameron wrote: > > ->erickchen, since ...
5 years ago (2015-12-09 15:58:23 UTC) #13
dtapuska
https://codereview.chromium.org/1458203003/diff/40001/content/browser/renderer_host/input/web_input_event_builders_mac.mm File content/browser/renderer_host/input/web_input_event_builders_mac.mm (right): https://codereview.chromium.org/1458203003/diff/40001/content/browser/renderer_host/input/web_input_event_builders_mac.mm#newcode635 content/browser/renderer_host/input/web_input_event_builders_mac.mm:635: if ([text_str length] == 1) { Can we do ...
5 years ago (2015-12-10 20:50:12 UTC) #14
erikchen
https://codereview.chromium.org/1458203003/diff/40001/content/browser/renderer_host/input/web_input_event_builders_mac.mm File content/browser/renderer_host/input/web_input_event_builders_mac.mm (right): https://codereview.chromium.org/1458203003/diff/40001/content/browser/renderer_host/input/web_input_event_builders_mac.mm#newcode640 content/browser/renderer_host/input/web_input_event_builders_mac.mm:640: } else if (c >= 0xF700 && c <= ...
5 years ago (2015-12-10 21:48:10 UTC) #15
dtapuska
https://codereview.chromium.org/1458203003/diff/40001/content/browser/renderer_host/input/web_input_event_builders_mac.mm File content/browser/renderer_host/input/web_input_event_builders_mac.mm (right): https://codereview.chromium.org/1458203003/diff/40001/content/browser/renderer_host/input/web_input_event_builders_mac.mm#newcode640 content/browser/renderer_host/input/web_input_event_builders_mac.mm:640: } else if (c >= 0xF700 && c <= ...
5 years ago (2015-12-10 21:53:02 UTC) #16
chongz
PTAL And I'm not sure is my change related to "mojo:mash_wm_apptests"? (it failed) Thanks! https://codereview.chromium.org/1458203003/diff/40001/content/browser/renderer_host/input/web_input_event_builders_mac.mm ...
5 years ago (2015-12-11 06:38:46 UTC) #17
dtapuska
https://codereview.chromium.org/1458203003/diff/60001/content/browser/renderer_host/input/web_input_event_builders_mac.mm File content/browser/renderer_host/input/web_input_event_builders_mac.mm (right): https://codereview.chromium.org/1458203003/diff/60001/content/browser/renderer_host/input/web_input_event_builders_mac.mm#newcode126 content/browser/renderer_host/input/web_input_event_builders_mac.mm:126: // Backspace should be 8 I'd assume you have ...
5 years ago (2015-12-11 16:20:30 UTC) #18
chongz
On 2015/12/11 16:20:30, dtapuska wrote: > https://codereview.chromium.org/1458203003/diff/60001/content/browser/renderer_host/input/web_input_event_builders_mac.mm > File content/browser/renderer_host/input/web_input_event_builders_mac.mm > (right): > > https://codereview.chromium.org/1458203003/diff/60001/content/browser/renderer_host/input/web_input_event_builders_mac.mm#newcode126 ...
5 years ago (2015-12-14 02:31:22 UTC) #19
dtapuska
On 2015/12/14 02:31:22, chongz wrote: > On 2015/12/11 16:20:30, dtapuska wrote: > > > https://codereview.chromium.org/1458203003/diff/60001/content/browser/renderer_host/input/web_input_event_builders_mac.mm ...
5 years ago (2015-12-14 14:32:43 UTC) #20
erikchen
This looks approximately correct to me, though I am not an expert on event handling. ...
5 years ago (2015-12-14 18:35:42 UTC) #21
chongz
Hi aelias, can you have a look at my CL please? I want to make ...
5 years ago (2015-12-14 22:33:24 UTC) #23
aelias_OOO_until_Jul13
Could you add test cases (can be just more clauses in your existing layout test) ...
5 years ago (2015-12-15 01:06:27 UTC) #24
chongz
On 2015/12/15 01:06:27, aelias wrote: > Could you add test cases (can be just more ...
5 years ago (2015-12-16 06:28:46 UTC) #25
aelias_OOO_until_Jul13
Hmm, looking more closely at this, it seems like it's primarily browser-side code's responsibility not ...
5 years ago (2015-12-16 07:42:05 UTC) #26
chongz
On 2015/12/16 07:42:05, aelias wrote: > Hmm, looking more closely at this, it seems like ...
5 years ago (2015-12-16 16:23:11 UTC) #27
aelias_OOO_until_Jul13
On 2015/12/16 at 16:23:11, chongz wrote: > For my patch since ctrl+delete on Mac will ...
5 years ago (2015-12-17 23:11:16 UTC) #28
chongz
Hi aelias, I've removed the blink code and suppress delete key on Mac-side, tested and ...
5 years ago (2015-12-18 19:09:25 UTC) #29
aelias_OOO_until_Jul13
On 2015/12/18 at 19:09:25, chongz wrote: > Hi aelias, > > I've removed the blink ...
5 years ago (2015-12-18 23:09:31 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1458203003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1458203003/140001
5 years ago (2015-12-18 23:18:22 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years ago (2015-12-18 23:24:05 UTC) #35
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/0cb4bd70989a22ea2e31590f291c0b2cc7d27433 Cr-Commit-Position: refs/heads/master@{#366205}
5 years ago (2015-12-18 23:25:09 UTC) #37
danakj
I think this broke compile. Maybe needs a rebase. https://build.chromium.org/p/chromium.mac/builders/Mac%20Builder/builds/33673
5 years ago (2015-12-18 23:45:55 UTC) #39
danakj
A revert of this CL (patchset #8 id:140001) has been created in https://codereview.chromium.org/1540013004/ by danakj@chromium.org. ...
5 years ago (2015-12-18 23:48:17 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1458203003/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1458203003/160001
5 years ago (2015-12-21 21:26:50 UTC) #44
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years ago (2015-12-21 21:35:25 UTC) #46
commit-bot: I haz the power
5 years ago (2015-12-21 21:36:11 UTC) #48
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/c8bec73a8b23de3fe11b4cbc2fb9fa0c0020e5c0
Cr-Commit-Position: refs/heads/master@{#366461}

Powered by Google App Engine
This is Rietveld 408576698