Flutter Engine
The Flutter Engine
Functions
editor_application.cpp File Reference
#include "include/core/SkCanvas.h"
#include "include/core/SkFontMgr.h"
#include "include/core/SkSurface.h"
#include "src/base/SkTime.h"
#include "tools/sk_app/Application.h"
#include "tools/sk_app/Window.h"
#include "tools/skui/ModifierKey.h"
#include "modules/skplaintexteditor/include/editor.h"
#include <cfloat>
#include <fstream>
#include <memory>

Go to the source code of this file.

Functions

static Editor::Movement convert (skui::Key key)
 

Function Documentation

◆ convert()

static Editor::Movement convert ( skui::Key  key)
static

Definition at line 73 of file editor_application.cpp.

73 {
74 switch (key) {
75 case skui::Key::kLeft: return Editor::Movement::kLeft;
76 case skui::Key::kRight: return Editor::Movement::kRight;
79 case skui::Key::kHome: return Editor::Movement::kHome;
80 case skui::Key::kEnd: return Editor::Movement::kEnd;
81 default: return Editor::Movement::kNowhere;
82 }
83}
@ kUp
Definition: embedder.h:973
@ kDown
Definition: embedder.h:980
@ kHome
the home key - added to match android
@ kEnd
the red key