Skip to content

Commit

Permalink
Merge pull request mono#8737 from mono/backport-pr-8736-to-master
Browse files Browse the repository at this point in the history
[master] TextViewContent: Only handle commands if text view has keyboard focus
  • Loading branch information
abock authored Sep 16, 2019
2 parents 050709d + f807717 commit 32b7eb4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ bool CanHandleCommand (object commandId)
return commandsSupportedWhenFindPresenterIsFocused.Contains (commandId);
}
}
#if !WINDOWS
if (TextView is ITextView3 textView3)
return textView3.IsKeyboardFocused;
#endif

return true;
}
Expand Down

0 comments on commit 32b7eb4

Please sign in to comment.