Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (19 sloc) 0.495 kb
#ifndef __SHORTCUTCTRL_H__
#define __SHORTCUTCTRL_H__
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include "key_hook.h"
class ShortcutCtrl : public KeyHookable<wxTextCtrl> {
public:
ShortcutCtrl(wxWindow* parent, wxWindowID id=wxID_ANY);
void Clear();
bool IsEmpty() const;
void SetKey(const wxString& binding);
const wxString& GetBinding() const;
virtual bool OnPreKeyDown(wxKeyEvent& event);
private:
wxString m_binding;
};
#endif // __SHORTCUTCTRL_H__
Jump to Line
Something went wrong with that request. Please try again.