#include <unordered_map>
#include "base/logging.h"
+#include "build/tizen_version.h"
#include "tizen_src/chromium_impl/ui/ozone/platform/efl/efl_event_handler.h"
using namespace std;
}
void InputDeviceManager::RegisterChannelKeyAsModeRegisted() {
+#if TIZEN_VERSION_AT_LEAST(9, 0, 0) || !BUILDFLAG(IS_RISCV64_TV)
if (!focus_surface_) {
LOG(INFO) << "focus_surface_ is null";
return;
map["XF86RaiseChannel"] = KeyRegisterState::REGISTERED;
map["XF86LowerChannel"] = KeyRegisterState::REGISTERED;
KeyRouter_Set_KeyList(self->focus_surface_, &key_list);
-#if !BUILDFLAG(IS_RISCV64_TV)
KeyRouter_Set_InputConfig(
self->focus_surface_,
TIZEN_TV_KEYROUTER_CONFIG_MODE_LONGPRESS_KEY_HANDOVER, NULL);
-#endif
LOG(INFO) << "XF86RaiseChannel / XF86LowerChannel are registed as "
"TIZEN_KEYROUTER_MODE_REGISTERED";
+#endif
}
bool InputDeviceManager::RegisterKey(const std::string& keyname) {