- if (session) {
- pending_keyboard_selection_start = session->audible_frame();
- have_pending_keyboard_selection = true;
- }
-}
-
-void
-Editor::keyboard_duplicate_region ()
-{
- if (selection->regions.empty()) {
- return;
- }
-
- float prefix = 0;
- bool was_floating;
-
- if (get_prefix (prefix, was_floating) == 0) {
- duplicate_some_regions (selection->regions, prefix);
- } else {
- duplicate_some_regions (selection->regions, 1);
- }
-}
+ if (_session) {
+ if (_session->transport_rolling()) {
+ pending_keyboard_selection_start = _session->audible_frame();
+ have_pending_keyboard_selection = true;
+ } else {
+ bool ignored;
+ framepos_t where; // XXX fix me