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