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

Unified Diff: sky/framework/components/input.dart

Issue 1089163005: Make the keyboard reappear when you tap on a text field after having dismissed the keyboard. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Turns out you don't want the InputMethodManager.SHOW_FORCED flag set in this case. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/keyboard/org/chromium/mojo/keyboard/KeyboardServiceImpl.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/framework/components/input.dart
diff --git a/sky/framework/components/input.dart b/sky/framework/components/input.dart
index c75bfb6aed910f85d60adf8e3d6c3c9273499fd6..8ed2f0d37c69fefcda057a32a7c310ece78ec8b8 100644
--- a/sky/framework/components/input.dart
+++ b/sky/framework/components/input.dart
@@ -8,6 +8,7 @@ import '../editing/keyboard.dart';
import '../fn.dart';
import '../theme/colors.dart';
import '../theme/typography.dart' as typography;
+import 'dart:sky' as sky;
typedef void ValueChanged(value);
@@ -82,10 +83,13 @@ class Input extends Component {
children.add(new EditableText(value: _editableValue, focused: focused));
- return new Container(
- style: _style,
- inlineStyle: focused ? _focusedInlineStyle : null,
- children: children
+ return new EventListenerNode(
+ new Container(
+ style: _style,
+ inlineStyle: focused ? _focusedInlineStyle : null,
+ children: children
+ ),
+ onPointerDown: (sky.Event e) => keyboard.showByRequest()
);
}
}
« no previous file with comments | « services/keyboard/org/chromium/mojo/keyboard/KeyboardServiceImpl.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698