// // Copyright RIME Developers // Distributed under the BSD License // // 2011-11-23 GONG Chen // #ifndef RIME_KEY_BINDER_H_ #define RIME_KEY_BINDER_H_ #include #include #include namespace rime { struct KeyBinding; class KeyBindings; class KeyBinder : public Processor { public: KeyBinder(const Ticket& ticket); virtual ProcessResult ProcessKeyEvent(const KeyEvent& key_event); protected: void LoadConfig(); bool ReinterpretPagingKey(const KeyEvent& key_event); void PerformKeyBinding(const KeyBinding& binding); the key_bindings_; bool redirecting_; int last_key_; }; } // namespace rime #endif // RIME_KEY_BINDER_H_