blob: 344c3086fba69d2e66672e359bb15cc4ec628183 [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TOPAZ_APP_TERM_KEY_UTIL_H_
#define TOPAZ_APP_TERM_KEY_UTIL_H_
#include <string>
#include <fuchsia/ui/input/cpp/fidl.h>
namespace term {
// Gets an appropriate (VT100/xterm-ish) sequence of characters to generate for
// the given key pressed event (|key_event| must have |action| value
// |EventType::KEY_PRESSED|). |keypad_application_mode| indicates if the keypad
// is in "application mode".
std::string GetInputSequenceForKeyPressedEvent(
const fuchsia::ui::input::InputEvent& key_event,
bool keypad_application_mode);
} // namespace term
#endif // TOPAZ_APP_TERM_KEY_UTIL_H_