aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-08-13 19:58:27 +1000
committerNeil <nyamatongwe@gmail.com>2022-08-13 19:58:27 +1000
commita3ad77a3499097ae3db33d95176458a0ef0dec2b (patch)
tree0683fc5d1bd5b933328b169fb23334d5f2350680 /src/Editor.cxx
parent5a19e2ac572bb0f3cd614836145a9d759263fd2d (diff)
downloadscintilla-mirror-a3ad77a3499097ae3db33d95176458a0ef0dec2b.tar.gz
Move ModifierFlags to ScintillaTypes.h as it is globally useful and not tied
to Editor.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index e80ec647b..8e8de16b1 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -2358,15 +2358,6 @@ void Editor::DelCharBack(bool allowLineStartDeletion) {
ShowCaretAtCurrentPosition();
}
-KeyMod Editor::ModifierFlags(bool shift, bool ctrl, bool alt, bool meta, bool super) noexcept {
- return
- (shift ? KeyMod::Shift : KeyMod::Norm) |
- (ctrl ? KeyMod::Ctrl : KeyMod::Norm) |
- (alt ? KeyMod::Alt : KeyMod::Norm) |
- (meta ? KeyMod::Meta : KeyMod::Norm) |
- (super ? KeyMod::Super : KeyMod::Norm);
-}
-
void Editor::NotifyFocus(bool focus) {
NotificationData scn = {};
scn.nmhdr.code = focus ? Notification::FocusIn : Notification::FocusOut;