Commit 394e8c5
Address code review nitpicks: improve code clarity and organization
- Add parentheses to Delete key condition for clarity
- Introduce _isClearCanvasModalVisible field to track modal state instead of checking UI
- Extract CancelActiveToolSafely() method to reduce code duplication
Co-authored-by: RuntimeRascal <2422222+RuntimeRascal@users.noreply.github.com>1 parent 7f9bfbb commit 394e8c5
2 files changed
Lines changed: 24 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | | - | |
| 781 | + | |
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
| |||
897 | 897 | | |
898 | 898 | | |
899 | 899 | | |
| 900 | + | |
900 | 901 | | |
901 | 902 | | |
902 | 903 | | |
| |||
916 | 917 | | |
917 | 918 | | |
918 | 919 | | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
| 920 | + | |
923 | 921 | | |
924 | 922 | | |
925 | 923 | | |
926 | 924 | | |
927 | 925 | | |
928 | 926 | | |
929 | 927 | | |
| 928 | + | |
930 | 929 | | |
931 | 930 | | |
932 | 931 | | |
| |||
1012 | 1011 | | |
1013 | 1012 | | |
1014 | 1013 | | |
| 1014 | + | |
1015 | 1015 | | |
1016 | 1016 | | |
1017 | 1017 | | |
| |||
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
1056 | 1074 | | |
1057 | 1075 | | |
1058 | 1076 | | |
| |||
0 commit comments