From a2dd3d187967cd838747329dc37382796b01ad4f Mon Sep 17 00:00:00 2001 From: johnsonj Date: Mon, 14 Dec 2015 15:03:51 +1100 Subject: Block IME when some selected text is protected. --- gtk/ScintillaGTK.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 19576ce9e..eaf2e26f8 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -2434,7 +2434,7 @@ void ScintillaGTK::PreeditChangedInlineThis() { // Copy & paste by johnsonj with a lot of helps of Neil // Great thanks for my foreruners, jiniya and BLUEnLIVE try { - if (pdoc->IsReadOnly()) { + if (pdoc->IsReadOnly() || SelectionContainsProtected()) { gtk_im_context_reset(im_context); return; } -- cgit v1.2.3