• Yuwei Huang's avatar
    Revert "[CRD iOS] Translate "\n" into an enter keypress" · d9da0824
    Yuwei Huang authored
    This reverts commit 8b79a3c6.
    
    Reason for revert: This change is not good enough to fix the keypress issue we see. We need to rework the way we send keypress, which will undo the change we do here.
    
    Original change's description:
    > [CRD iOS] Translate "\n" into an enter keypress
    > 
    > iOS is sending a "\n" unicode text event to the host when the user taps
    > the `return` key. On Windows this doesn't always generate a newline.
    > 
    > This CL fixes this issue by translating the "\n" text event into a
    > ENTER keypress before sending it to the host.
    > 
    > Bug: 830959
    > Change-Id: Ib94caf6ce2036cc5654f1b59f1e0136c81c9eec1
    > Reviewed-on: https://chromium-review.googlesource.com/1003598
    > Commit-Queue: Yuwei Huang <yuweih@chromium.org>
    > Reviewed-by: Jamie Walch <jamiewalch@chromium.org>
    > Cr-Commit-Position: refs/heads/master@{#549385}
    
    TBR=jamiewalch@chromium.org,yuweih@chromium.org
    
    Change-Id: Icba4c28dccc7154f30a41b90dc2cbc62feae2824
    No-Presubmit: true
    No-Tree-Checks: true
    No-Try: true
    Bug: 830959
    Reviewed-on: https://chromium-review.googlesource.com/1005697Reviewed-by: default avatarYuwei Huang <yuweih@chromium.org>
    Commit-Queue: Yuwei Huang <yuweih@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#549633}
    d9da0824
keyboard_interpreter.cc 2.34 KB