diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-10-31 09:52:41 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-10-31 09:52:41 +0100 |
| commit | 24bfc35fcb088ff6e8597c9c7e6b9a020dde228c (patch) | |
| tree | 58fcbe697485fd611779b44bb22d505a8c8cf1d0 /Samples/common | |
| parent | f9058ecea3c4dd28f27c1cc12fcd7ee9c22ac17a (diff) | |
update readme
Diffstat (limited to 'Samples/common')
| -rw-r--r-- | Samples/common/src/Editor.cs | 2 | ||||
| -rw-r--r-- | Samples/common/src/SampleBaseForEditor.cs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Samples/common/src/Editor.cs b/Samples/common/src/Editor.cs index 0c702745..25a15c5a 100644 --- a/Samples/common/src/Editor.cs +++ b/Samples/common/src/Editor.cs @@ -263,7 +263,7 @@ namespace Crow disableSuggestions = true; - if (IFace.Shift) { + if (e.Modifiers.HasFlag(Modifier.Shift)) { for (int l = lineStart; l <= lineEnd; l++) { if (Text[lines[l].Start] == '\t') update (new TextChange (lines[l].Start, 1, "")); diff --git a/Samples/common/src/SampleBaseForEditor.cs b/Samples/common/src/SampleBaseForEditor.cs index a63ba54e..92d0634c 100644 --- a/Samples/common/src/SampleBaseForEditor.cs +++ b/Samples/common/src/SampleBaseForEditor.cs @@ -325,7 +325,7 @@ namespace Samples protected void textView_KeyDown (object sender, Crow.KeyEventArgs e) { if (Ctrl) { if (e.Key == Glfw.Key.W) { - if (Shift) + if (e.Modifiers.HasFlag(Modifier.Shift)) CMDRedo.Execute (); else CMDUndo.Execute (); |