|
9 | 9 | import androidx.annotation.NonNull; |
10 | 10 | import io.flutter.Log; |
11 | 11 | import io.flutter.embedding.android.KeyboardManager.Responder.OnKeyEventHandledCallback; |
12 | | -import io.flutter.embedding.engine.systemchannels.KeyEventChannel; |
13 | 12 | import io.flutter.plugin.editing.TextInputPlugin; |
14 | 13 | import java.util.HashSet; |
15 | 14 |
|
|
37 | 36 | * <p>When a new {@link KeyEvent} is received, {@link KeyboardManager} calls the {@link |
38 | 37 | * Responder#handleEvent(KeyEvent, OnKeyEventHandledCallback)} method on its {@link |
39 | 38 | * Responder}s. Each {@link Responder} must call the supplied {@link |
40 | | - * OnKeyEventHandledCallback} exactly once, when it has decided wether to handle the key event |
41 | | - * callback. More than one {@link Responder} is allowed to reply true and handle the same |
42 | | - * {@link KeyEvent}. |
| 39 | + * OnKeyEventHandledCallback} exactly once, when it has decided whether to handle the key |
| 40 | + * event callback. More than one {@link Responder} is allowed to reply true and handle the |
| 41 | + * same {@link KeyEvent}. |
43 | 42 | * <p>Typically a {@link KeyboardManager} uses a {@link KeyChannelResponder} as its only |
44 | 43 | * {@link Responder}. |
45 | 44 | * <li>{@link TextInputPlugin}: if every {@link Responder} has replied false to a {@link |
@@ -83,14 +82,6 @@ public KeyboardManager( |
83 | 82 | this.responders = responders; |
84 | 83 | } |
85 | 84 |
|
86 | | - KeyboardManager( |
87 | | - View view, @NonNull TextInputPlugin textInputPlugin, KeyEventChannel keyEventChannel) { |
88 | | - this( |
89 | | - view, |
90 | | - textInputPlugin, |
91 | | - new KeyboardManager.Responder[] {new KeyChannelResponder(keyEventChannel)}); |
92 | | - } |
93 | | - |
94 | 85 | /** |
95 | 86 | * The interface for responding to a {@link KeyEvent} asynchronously. |
96 | 87 | * |
|
0 commit comments