X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2FKeySymbol.h;h=7e67536aa5146c61258a0b6f6d47566470590bec;hb=527984ed2e0269861f5e1efc021fa0302d80819b;hp=6f9b0645f1412f95d8ffd1e7030f2cd519c8a17b;hpb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;p=lyx.git diff --git a/src/frontends/KeySymbol.h b/src/frontends/KeySymbol.h index 6f9b0645f1..7e67536aa5 100644 --- a/src/frontends/KeySymbol.h +++ b/src/frontends/KeySymbol.h @@ -33,6 +33,9 @@ public: /// Initialize with the name of a key. F. ex. "space" or "a" void init(std::string const & symbolname); + /// Initialize with some platform specific sym value + void init(int key); + /// Is this a valid key? bool isOK() const; @@ -56,7 +59,7 @@ public: * Use the native UI format when \c forgui is true. * i.e. (translated and with special characters for Mac OS X) */ - docstring const print(KeyModifier mod, bool forgui) const; + docstring const print(KeyModifier mod, bool forgui, bool untranslated = false) const; /// int key() const { return key_; }