diff libgui/src/m-editor/octave-qscintilla.h @ 24190:90fe16a3a5a1

improve selection replacement in editor * octave-qscintilla.h, octave-qscintilla.cc (octave_qscintilla::show_replace_action_tooltip): New function. (octave_qscintilla::keyPressEvent): Use it. When doing selection replacement, allow backspace to remove the last character of the replacement. End the selection replacement action if text is not valid as a word constituent.
author John W. Eaton <jwe@octave.org>
date Tue, 31 Oct 2017 13:28:43 -0400
parents ff9bd559799b
children e0bcd17ac070
line wrap: on
line diff
--- a/libgui/src/m-editor/octave-qscintilla.h	Tue Oct 31 13:02:01 2017 +0100
+++ b/libgui/src/m-editor/octave-qscintilla.h	Tue Oct 31 13:28:43 2017 -0400
@@ -98,6 +98,8 @@
 
   void focusInEvent (QFocusEvent *focusEvent);
 
+  void show_replace_action_tooltip (void);
+
   void keyPressEvent (QKeyEvent *e);
 
 private: