Skip to content

Commit

Permalink
disable opening the docs panel (#3034)
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew authored Aug 1, 2024
1 parent ed994fb commit 3c7850f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkgs/dartpad_ui/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,12 @@ class _DartPadMainPageState extends State<DartPadMainPage>
static final RegExp identifierChar = RegExp(r'[\w\d_<=>]');

void _handleDocClicked() async {
// TODO: Support having the escape key close the doc panel.
// TODO(devoncarew): Disable opening the documentation panel; this is too
// disruptive when people are editing code. We should switch to using a
// tooltip (https://github.com/dart-lang/dart-pad/issues/3032).
return;

// ignore: dead_code
try {
final source = appModel.sourceCodeController.text;
final offset = appModel.lastEditorClickOffset.value;
Expand Down

0 comments on commit 3c7850f

Please sign in to comment.