Skip to content

Commit 0535115

Browse files
committed
fixed - F2 key was ignoring the IsReadOnly state of the Cell/TableView
1 parent 0adf93c commit 0535115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TableView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private void HandleNavigations(KeyRoutedEventArgs e, bool shiftKey, bool ctrlKey
151151
{
152152
var currentCell = CurrentCellSlot.HasValue ? GetCellFromSlot(CurrentCellSlot.Value) : default;
153153

154-
if (e.Key is VirtualKey.F2 && currentCell is not null && !IsEditing)
154+
if (e.Key is VirtualKey.F2 && currentCell is { IsReadOnly: false } && !IsEditing)
155155
{
156156
currentCell.PrepareForEdit();
157157
e.Handled = true;

0 commit comments

Comments
 (0)