|
|
|
@ -22,7 +22,7 @@
|
|
|
|
|
|
|
|
|
|
#include "kaleidoscope/KeyEvent.h" // for KeyEvent
|
|
|
|
|
#include "kaleidoscope/event_handler_result.h" // for EventHandlerResult
|
|
|
|
|
#include "kaleidoscope/key_defs.h" // for Key
|
|
|
|
|
#include "kaleidoscope/key_defs.h" // for Key, Key_Escape
|
|
|
|
|
#include "kaleidoscope/plugin.h" // for Plugin
|
|
|
|
|
|
|
|
|
|
// DEPRECATED: `OneShotCancelKey` doesn't match our normal naming, and should
|
|
|
|
@ -50,9 +50,7 @@ class EscapeOneShot : public kaleidoscope::Plugin {
|
|
|
|
|
struct Settings {
|
|
|
|
|
Key cancel_oneshot_key;
|
|
|
|
|
};
|
|
|
|
|
Settings settings_ = {
|
|
|
|
|
.cancel_oneshot_key = Key_Escape
|
|
|
|
|
};
|
|
|
|
|
Settings settings_ = {.cancel_oneshot_key = Key_Escape};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
class EscapeOneShotConfig : public Plugin {
|
|
|
|
|