am badd8399
: fix copy/paste using trackball on passion
Merge commit 'badd8399ca803f48ca43658b49c1cdcf0e3ec250' into eclair-mr2-plus-aosp * commit 'badd8399ca803f48ca43658b49c1cdcf0e3ec250': fix copy/paste using trackball on passion
This commit is contained in:
@ -2967,12 +2967,12 @@ public class WebView extends AbsoluteLayout
|
|||||||
animateScroll);
|
animateScroll);
|
||||||
|
|
||||||
if (mNativeClass == 0) return;
|
if (mNativeClass == 0) return;
|
||||||
if (mShiftIsPressed) {
|
if (mShiftIsPressed && !animateZoom) {
|
||||||
if (mTouchSelection) {
|
if (mTouchSelection) {
|
||||||
nativeDrawSelectionRegion(canvas);
|
nativeDrawSelectionRegion(canvas);
|
||||||
} else {
|
} else {
|
||||||
nativeDrawSelection(canvas, mSelectX, mSelectY,
|
nativeDrawSelection(canvas, mInvActualScale, getTitleHeight(),
|
||||||
mExtendSelection);
|
mSelectX, mSelectY, mExtendSelection);
|
||||||
}
|
}
|
||||||
} else if (drawCursorRing) {
|
} else if (drawCursorRing) {
|
||||||
if (mTouchMode == TOUCH_SHORTPRESS_START_MODE) {
|
if (mTouchMode == TOUCH_SHORTPRESS_START_MODE) {
|
||||||
@ -4137,6 +4137,9 @@ public class WebView extends AbsoluteLayout
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (ev.getAction() == MotionEvent.ACTION_DOWN) {
|
if (ev.getAction() == MotionEvent.ACTION_DOWN) {
|
||||||
|
if (mShiftIsPressed) {
|
||||||
|
return true; // discard press if copy in progress
|
||||||
|
}
|
||||||
mTrackballDown = true;
|
mTrackballDown = true;
|
||||||
if (mNativeClass == 0) {
|
if (mNativeClass == 0) {
|
||||||
return false;
|
return false;
|
||||||
@ -4165,6 +4168,7 @@ public class WebView extends AbsoluteLayout
|
|||||||
} else {
|
} else {
|
||||||
mExtendSelection = true;
|
mExtendSelection = true;
|
||||||
}
|
}
|
||||||
|
return true; // discard press if copy in progress
|
||||||
}
|
}
|
||||||
if (DebugFlags.WEB_VIEW) {
|
if (DebugFlags.WEB_VIEW) {
|
||||||
Log.v(LOGTAG, "onTrackballEvent up ev=" + ev
|
Log.v(LOGTAG, "onTrackballEvent up ev=" + ev
|
||||||
@ -5710,8 +5714,8 @@ public class WebView extends AbsoluteLayout
|
|||||||
private native void nativeDestroy();
|
private native void nativeDestroy();
|
||||||
private native void nativeDrawCursorRing(Canvas content);
|
private native void nativeDrawCursorRing(Canvas content);
|
||||||
private native void nativeDrawMatches(Canvas canvas);
|
private native void nativeDrawMatches(Canvas canvas);
|
||||||
private native void nativeDrawSelection(Canvas content
|
private native void nativeDrawSelection(Canvas content, float scale,
|
||||||
, int x, int y, boolean extendSelection);
|
int offset, int x, int y, boolean extendSelection);
|
||||||
private native void nativeDrawSelectionRegion(Canvas content);
|
private native void nativeDrawSelectionRegion(Canvas content);
|
||||||
private native void nativeDumpDisplayTree(String urlOrNull);
|
private native void nativeDumpDisplayTree(String urlOrNull);
|
||||||
private native int nativeFindAll(String findLower, String findUpper);
|
private native int nativeFindAll(String findLower, String findUpper);
|
||||||
|
Reference in New Issue
Block a user