Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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;
77 case skui::Key::kUp: return Editor::Movement::kUp;
78 case skui::Key::kDown: return Editor::Movement::kDown;
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}