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