File tree Expand file tree Collapse file tree 5 files changed +2
-75
lines changed
io/flutter/plugin/editing Expand file tree Collapse file tree 5 files changed +2
-75
lines changed Original file line number Diff line number Diff line change @@ -435,12 +435,10 @@ action("robolectric_tests") {
435435 " test/io/flutter/embedding/engine/systemchannels/PlatformChannelTest.java" ,
436436 " test/io/flutter/external/FlutterLaunchTests.java" ,
437437 " test/io/flutter/plugin/common/StandardMessageCodecTest.java" ,
438- " test/io/flutter/plugin/editing/InputConnectionAdaptorTest.java" ,
439438 " test/io/flutter/plugin/editing/TextInputPluginTest.java" ,
440439 " test/io/flutter/plugin/platform/PlatformPluginTest.java" ,
441440 " test/io/flutter/plugin/platform/SingleViewPresentationTest.java" ,
442441 " test/io/flutter/plugins/GeneratedPluginRegistrant.java" ,
443- " test/io/flutter/util/FakeKeyEvent.java" ,
444442 " test/io/flutter/util/PreconditionsTest.java" ,
445443 ]
446444
Original file line number Diff line number Diff line change 1010import android .provider .Settings ;
1111import android .text .DynamicLayout ;
1212import android .text .Editable ;
13- import android .text .InputType ;
1413import android .text .Layout ;
1514import android .text .Selection ;
1615import android .text .TextPaint ;
@@ -275,11 +274,8 @@ public boolean sendKeyEvent(KeyEvent event) {
275274 int newSel = Math .min (selStart + 1 , mEditable .length ());
276275 setSelection (newSel , newSel );
277276 return true ;
278- // When the enter key is pressed on a non-multiline field, consider it a
279- // submit instead of a newline.
280- } else if ((event .getKeyCode () == KeyEvent .KEYCODE_ENTER
281- || event .getKeyCode () == KeyEvent .KEYCODE_NUMPAD_ENTER )
282- && (InputType .TYPE_TEXT_FLAG_MULTI_LINE & mEditorInfo .inputType ) == 0 ) {
277+ } else if (event .getKeyCode () == KeyEvent .KEYCODE_ENTER
278+ || event .getKeyCode () == KeyEvent .KEYCODE_NUMPAD_ENTER ) {
283279 performEditorAction (mEditorInfo .imeOptions & EditorInfo .IME_MASK_ACTION );
284280 return true ;
285281 } else {
Original file line number Diff line number Diff line change 1717import io .flutter .embedding .engine .systemchannels .PlatformChannelTest ;
1818import io .flutter .external .FlutterLaunchTests ;
1919import io .flutter .plugin .common .StandardMessageCodecTest ;
20- import io .flutter .plugin .editing .InputConnectionAdaptorTest ;
2120import io .flutter .plugin .editing .TextInputPluginTest ;
2221import io .flutter .plugin .platform .PlatformPluginTest ;
2322import io .flutter .plugin .platform .SingleViewPresentationTest ;
4544 FlutterShellArgsTest .class ,
4645 FlutterRendererTest .class ,
4746 FlutterViewTest .class ,
48- InputConnectionAdaptorTest .class ,
4947 PlatformChannelTest .class ,
5048 PlatformPluginTest .class ,
5149 PluginComponentTest .class ,
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments