#25: add shortcut capturing function