AvaloniaEdit
AvaloniaEdit copied to clipboard
Fix: TextEditor.SelectAll method doesn't work
Fixes #512
The RoutedCommand's CanExecute handler shouldn't check whether editor IsFocused. The source of the RoutedCommand (Button, MenuItem, etc.) has focus when the command is executed. (When using the context menu, the focus will automatically move back to the editor when the context menu is closed.)