Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/elfmz/far2l.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelfmz <fenix1905@tut.by>2021-06-20 21:39:44 +0300
committerelfmz <fenix1905@tut.by>2021-06-20 21:39:44 +0300
commit05ed56a1ab328d4801eae419a1da5668c310120d (patch)
tree4faaf0c8a9751d56a4fd98acbfdc74c508950f5a /editorcomp
parentf699bec46b18f5fa8d288288da53d9fc9c044dac (diff)
avoid editor autocomplet suggestions after pressing enter
Diffstat (limited to 'editorcomp')
-rw-r--r--editorcomp/src/editorcomp.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editorcomp/src/editorcomp.cpp b/editorcomp/src/editorcomp.cpp
index d0391984..cadef5d2 100644
--- a/editorcomp/src/editorcomp.cpp
+++ b/editorcomp/src/editorcomp.cpp
@@ -134,6 +134,7 @@ SHAREDSYMBOL int WINAPI ProcessEditorInputW(const INPUT_RECORD *ir) {
&& ir->Event.KeyEvent.wVirtualKeyCode != VK_ESCAPE && ir->Event.KeyEvent.wVirtualKeyCode != VK_DELETE
&& ir->Event.KeyEvent.wVirtualKeyCode != VK_UP && ir->Event.KeyEvent.wVirtualKeyCode != VK_DOWN
&& ir->Event.KeyEvent.wVirtualKeyCode != VK_LEFT && ir->Event.KeyEvent.wVirtualKeyCode != VK_RIGHT
+ && ir->Event.KeyEvent.wVirtualKeyCode != VK_RETURN
&& ir->Event.KeyEvent.uChar.UnicodeChar != 0) {
editors->getEditor()->on();