File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
packages/ckeditor5-find-and-replace/src/ui Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -735,14 +735,17 @@ export default class FindAndReplaceFormView extends View {
735
735
this . _keystrokes . set ( 'shift+enter' , event => {
736
736
const target = event . target ;
737
737
738
- if ( target === this . _findInputView . fieldView . element ) {
739
- if ( this . _areCommandsEnabled . findPrevious ) {
740
- this . _findPrevButtonView . fire ( 'execute' ) ;
741
- } else {
742
- this . _findButtonView . fire ( 'execute' ) ;
743
- }
744
- stopPropagationAndPreventDefault ( event ) ;
738
+ if ( target !== this . _findInputView . fieldView . element ) {
739
+ return ;
745
740
}
741
+
742
+ if ( this . _areCommandsEnabled . findPrevious ) {
743
+ this . _findPrevButtonView . fire ( 'execute' ) ;
744
+ } else {
745
+ this . _findButtonView . fire ( 'execute' ) ;
746
+ }
747
+
748
+ stopPropagationAndPreventDefault ( event ) ;
746
749
} ) ;
747
750
748
751
// Since the form is in the dropdown panel which is a child of the toolbar, the toolbar's
You can’t perform that action at this time.
0 commit comments