浏览代码

Rearrange order of elements in ui to be coherent with focus order.

Mateusz Samsel 6 年之前
父节点
当前提交
65c65214e3
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      packages/ckeditor5-link/src/ui/linkformview.js

+ 3 - 3
packages/ckeditor5-link/src/ui/linkformview.js

@@ -171,7 +171,6 @@ export default class LinkFormView extends View {
 			view: this
 		} );
 
-		// Focus order should be different than position in DOM. Save/Cancel buttons should be focused at the end.
 		const childViews = [
 			this.urlInputView,
 			...this.manualDecoratorsUIView,
@@ -288,8 +287,6 @@ export default class LinkFormView extends View {
 		const children = this.createCollection();
 
 		children.add( this.urlInputView );
-		children.add( this.saveButtonView );
-		children.add( this.cancelButtonView );
 
 		if ( this.manualDecorators.length ) {
 			const additionalButtonsView = new View();
@@ -316,6 +313,9 @@ export default class LinkFormView extends View {
 			children.add( additionalButtonsView );
 		}
 
+		children.add( this.saveButtonView );
+		children.add( this.cancelButtonView );
+
 		return children;
 	}
 }