• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #import "flutter/shell/platform/darwin/macos/framework/Headers/FlutterViewController.h"
6 
7 #import "flutter/shell/platform/darwin/macos/framework/Source/FlutterView.h"
8 
9 @interface FlutterViewController ()
10 
11 // The FlutterView for this view controller.
12 @property(nonatomic, readonly, nullable) FlutterView* flutterView;
13 
14 /**
15  * Adds a responder for keyboard events. Key up and key down events are forwarded to all added
16  * responders.
17  */
18 - (void)addKeyResponder:(nonnull NSResponder*)responder;
19 
20 /**
21  * Removes a responder for keyboard events.
22  */
23 - (void)removeKeyResponder:(nonnull NSResponder*)responder;
24 
25 @end
26