Only allow recording macro to register a-z

This commit is contained in:
Maxime Coste 2013-10-10 22:58:41 +01:00
parent c478a97a2f
commit 59ae6411f5

View File

@ -716,7 +716,8 @@ void start_or_end_macro_recording(Context& context, int)
context.client().stop_recording();
else
on_next_key_with_autoinfo(context, [](Key key, Context& context) {
if (key.modifiers == Key::Modifiers::None)
if (key.modifiers == Key::Modifiers::None and
key.key >= 'a' and key.key <= 'z')
context.client().start_recording(key.key);
},
"╭──┤record macro├──╮\n"