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

Issue 330613002: Copying text closes the keyboard and the text input gets unfocused, forcing virtual keyboard is get… (Closed)

Created:
6 years, 6 months ago by AKVT
Modified:
6 years, 6 months ago
CC:
blink-reviews, jamesr, dglazkov+blink, abarth-chromium, use-l.gombos-samsung.com, Inactive
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Copying text closes the keyboard and the text input gets unfocused, forcing virtual keyboard is getting closed. During copy operation inside an editable field, we are clearing the selection, which is clearing the cursor as well. In turn there is no rootEditable Element for the selection and Keyboard type is sending as None and hence IME is dismissing by ImeAdapater. This is preventing user to edit the input field continuously even after a copy operation. To prevent this keyboard hiding issue, we are collapsing the selection to end instead of clearing the selection, so that the cursor and caret will be visible and keyboard will be ON and user can continue editing. BUG=225090 Changes curresponding to this has been landed at Chromium side with https://codereview.chromium.org/330623002/ Hence closing this issue.

Patch Set 1 #

Patch Set 2 : Updated code based on self review. #

Total comments: 8

Patch Set 3 : Fixed review comments #

Total comments: 2

Patch Set 4 : Added test for CollapseToEnd change. #

Patch Set 5 : Updated self review changes. #

Patch Set 6 : Kept the test case only for Android build. #

Patch Set 7 : Removed FrameSelection changes and making use of existing APIs for serving the requirement. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -2 lines) Patch
M Source/web/WebLocalFrameImpl.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 1 chunk +16 lines, -0 lines 0 comments Download
M Source/web/WebRemoteFrameImpl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebRemoteFrameImpl.cpp View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 4 5 6 1 chunk +23 lines, -0 lines 0 comments Download
A + Source/web/tests/data/selection_collapse_to_end.html View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M public/web/WebFrame.h View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
AKVT
PTAL
6 years, 6 months ago (2014-06-12 10:45:10 UTC) #1
yosin_UTC9
Please implement functionality in FrameSelection rather than WebFrameImpl. We would like Web* are thin API ...
6 years, 6 months ago (2014-06-13 04:20:15 UTC) #2
AKVT
On 2014/06/13 04:20:15, yosi wrote: > Please implement functionality in FrameSelection rather than WebFrameImpl. We ...
6 years, 6 months ago (2014-06-13 10:41:00 UTC) #3
yosin_UTC9
On 2014/06/13 10:41:00, AJITH KUMAR V wrote: > @Yosi Thanks for reviewing. Could you please ...
6 years, 6 months ago (2014-06-16 01:21:34 UTC) #4
AKVT
On 2014/06/16 01:21:34, yosi wrote: > On 2014/06/13 10:41:00, AJITH KUMAR V wrote: > > ...
6 years, 6 months ago (2014-06-16 06:45:48 UTC) #5
AKVT
@Yosi PTAL this change. I have optimized the code to collapse the selection to end.
6 years, 6 months ago (2014-06-16 06:50:12 UTC) #6
Yuta Kitamura
As Yoshi said in #2, please do not add logic in WebLocalFrame. Actual operations should ...
6 years, 6 months ago (2014-06-16 07:58:43 UTC) #7
AKVT
On 2014/06/16 07:58:43, Yuta Kitamura wrote: > As Yoshi said in #2, please do not ...
6 years, 6 months ago (2014-06-16 09:25:25 UTC) #8
AKVT
Fixed all review comments. https://codereview.chromium.org/330613002/diff/20001/Source/web/WebLocalFrameImpl.cpp File Source/web/WebLocalFrameImpl.cpp (right): https://codereview.chromium.org/330613002/diff/20001/Source/web/WebLocalFrameImpl.cpp#newcode1850 Source/web/WebLocalFrameImpl.cpp:1850: if (selection.isInTextField() && selection.isRange()) { ...
6 years, 6 months ago (2014-06-16 10:34:35 UTC) #9
AKVT
@Yosi and Yuta. PTAL this change.
6 years, 6 months ago (2014-06-16 10:38:44 UTC) #10
yosin_UTC9
Could you add test case? We can add test case into "web/tests/WebFrameTest.cpp". https://codereview.chromium.org/330613002/diff/60001/Source/web/WebLocalFrameImpl.cpp File Source/web/WebLocalFrameImpl.cpp ...
6 years, 6 months ago (2014-06-17 01:16:59 UTC) #11
Yuta Kitamura
I still don't understand why adding an interface to WebFrame is necessary. Which class clears ...
6 years, 6 months ago (2014-06-17 03:56:45 UTC) #12
AKVT
On 2014/06/17 03:56:45, Yuta Kitamura wrote: > I still don't understand why adding an interface ...
6 years, 6 months ago (2014-06-17 04:27:02 UTC) #13
AKVT
@Yosi - I made WebLocalFrameImpl light weight as per the comments. I will upload the ...
6 years, 6 months ago (2014-06-17 06:35:46 UTC) #14
AKVT
@Yosi and Yuta PTAL. I have added test case for this change.
6 years, 6 months ago (2014-06-17 07:09:05 UTC) #15
AKVT
PTAL
6 years, 6 months ago (2014-06-17 09:11:15 UTC) #16
Yuta Kitamura
On 2014/06/17 04:27:02, AJITH KUMAR V wrote: > @Yuta - RenderFrameImpl::OnUnselect() is getting called to ...
6 years, 6 months ago (2014-06-18 02:41:49 UTC) #17
AKVT
On 2014/06/18 02:41:49, Yuta Kitamura wrote: > On 2014/06/17 04:27:02, AJITH KUMAR V wrote: > ...
6 years, 6 months ago (2014-06-18 12:03:10 UTC) #18
AKVT
@Yuta and Yosi PTAL
6 years, 6 months ago (2014-06-18 12:04:37 UTC) #19
yosin_UTC9
On 2014/06/18 12:04:37, AJITH KUMAR V wrote: > @Yuta and Yosi PTAL I think yuta@ ...
6 years, 6 months ago (2014-06-19 01:02:06 UTC) #20
AKVT
On 2014/06/19 01:02:06, yosi wrote: > On 2014/06/18 12:04:37, AJITH KUMAR V wrote: > > ...
6 years, 6 months ago (2014-06-19 01:10:56 UTC) #21
yosin_UTC9
On 2014/06/19 01:10:56, AJITH KUMAR V wrote: > On 2014/06/19 01:02:06, yosi wrote: > > ...
6 years, 6 months ago (2014-06-19 01:59:26 UTC) #22
Yuta Kitamura
On 2014/06/19 01:59:26, yosi wrote: > Sorry for confusion, I mean it should be implemented ...
6 years, 6 months ago (2014-06-19 02:50:33 UTC) #23
AKVT
On 2014/06/19 02:50:33, Yuta Kitamura wrote: > On 2014/06/19 01:59:26, yosi wrote: > > Sorry ...
6 years, 6 months ago (2014-06-19 07:12:31 UTC) #24
Yuta Kitamura
6 years, 6 months ago (2014-06-19 07:26:36 UTC) #25
Sure, please don't forget to close this code review
from "Edit Issue" link. (Otherwise, this code review
will keep being shown in the reviewers' pages.)

Powered by Google App Engine
This is Rietveld 408576698