Closed
Description
The PageUp/PageDown keys should move the cursor up/down by a bunch of lines. Currently, they don't do any thing at all.
To reproduce
- Run any app with a multiline text field, such as the one below.
- Focus the field and enter a couple of lines of text.
- Press PageUp.
Expected: The cursor jumps up by one page, or to the top.
Actual: Nothing happens.
Vice versa for PageDown.
Code
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const MyHomePage(title: 'Flutter Demo Home Page'),
);
}
}
class MyHomePage extends StatelessWidget {
const MyHomePage({Key? key, required this.title}) : super(key: key);
final String title;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text(title),
),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
TextField(minLines: 4, maxLines: 4),
],
),
),
);
}
}
Related: It also looks like our scrollables don't properly respond to pageup/down either: #93521
Metadata
Metadata
Assignees
Labels
Entering text in a text field or keyboard related problemsflutter/packages/flutter/material repository.Found to occur in 3.0Found to occur in 3.1flutter/packages/flutter repository. See also f: labels.The issue has been confirmed reproducible and is ready to work onIssue is closed as already fixed in a newer versionA fix is in flight