Flutter Engine
 
Loading...
Searching...
No Matches
fl_key_embedder_responder_private.h
Go to the documentation of this file.
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#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_KEY_EMBEDDER_RESPONDER_PRIVATE_H_
6#define FLUTTER_SHELL_PLATFORM_LINUX_FL_KEY_EMBEDDER_RESPONDER_PRIVATE_H_
7
8#include <gdk/gdk.h>
9
13
14/**
15 * FlKeyEmbedderCheckedKey:
16 *
17 * The information for a key that #FlKeyEmbedderResponder should keep state
18 * synchronous on. For every record of #FlKeyEmbedderCheckedKey, the responder
19 * will check the #GdkEvent::state and the internal state, and synchronize
20 * events if they don't match.
21 *
22 * #FlKeyEmbedderCheckedKey can synchronize pressing states (such as
23 * whether ControlLeft is pressed) or lock states (such as whether CapsLock
24 * is enabled).
25 *
26 * #FlKeyEmbedderCheckedKey has a "primary key". For pressing states, the
27 * primary key is the left of the modifiers. For lock states, the primary
28 * key is the key.
29 *
30 * #FlKeyEmbedderCheckedKey may also have a "secondary key". It is only
31 * available to pressing states, which is the right of the modifiers.
32 */
33typedef struct {
34 // The physical key for the primary key.
36 // The logical key for the primary key.
38 // The logical key for the secondary key.
40 // Whether this key is CapsLock. CapsLock uses a different event model in GDK
41 // and needs special treatment.
44
45#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_KEY_EMBEDDER_RESPONDER_PRIVATE_H_