Skip to content
Commit 0fe5d5bb authored by Xuetian Weng's avatar Xuetian Weng Committed by Xuetian Weng
Browse files

Revamp the inputMethodQuery for konsolepart.

1. Surrounding text does not make sense for terminal, because
   surrounding text is used by input method for text predication, usually
   used together with deleteSurroundingText (commitString with negative
   offset), which is impossible for terminal application because it
   requires directly modify the buffer. Return value for surrounding
   text may cause invalid expectation from input method, e.g. input
   method may wrongly treat the command prompt as a part of text in the
   text buffer.
2. Fallback inputMethodQuery to QWidget default implementation, this
   allows ImHint to use QWidget::inputMethodHints().
3. Set default input method hints that makes sense for terminal.
parent b783fdcb
Pipeline #307207 passed with stage
in 5 minutes and 12 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment