Source

Kephra / lib / Kephra / App / Part / Editor.pm

Diff from to

lib/Kephra/App/Part/Editor.pm

 Kephra::API::Command::register({
  'docbar-prev' =>{sub=>'select_docbar_prev', label=>'Prev Docbar',  keys=>'alt+pageup'},
  'docbar-next' =>{sub=>'select_docbar_next', label=>'Next Docbar',  keys=>'alt+pagedown'},
- 'docbar-del' =>{sub=>'select_docbar_del', label=>'Next Docbar',  keys=>'ctrl+alt+pageup'},
- 'docbar-add' =>{sub=>'select_docbar_add', label=>'Prev Docbar',  keys=>'ctrl+alt+pagedown'},
+ 'docbar-del'  =>{sub=>'select_docbar_del', label=>'Next Docbar',  keys=>'ctrl+alt+pageup'},
+ 'docbar-add'  =>{sub=>'select_docbar_add', label=>'Prev Docbar',  keys=>'ctrl+alt+pagedown'},
 });
 
 
 	}
 	$passive_bar[-1]->Destroy();
 	delete $passive_bar[-1];
-	Kephra::API::focus($active_bar->GetSelection);
-	#Kephra::API::focus( Kephra::API::document()->panel->{$active_bar} );
-	#Kephra::API::focus( $splitter{'main'} );
+	Kephra::API::focus( $active_bar->GetPage( $active_bar->GetSelection ) );
 }
+
 sub select_docbar_add {
 	my $docbar_count = scalar @passive_bar + 1;
 	return if $docbar_count > 3;