mirror of
				https://github.com/SimpleMobileTools/Simple-Keyboard.git
				synced 2025-06-05 21:49:26 +02:00 
			
		
		
		
	Fixed termux issue
This commit is contained in:
		| @@ -163,7 +163,6 @@ class SimpleKeyboardIME : InputMethodService(), OnKeyboardActionListener, Shared | ||||
|  | ||||
|             else -> { | ||||
|                 var codeChar = code.toChar() | ||||
|                 val originalText = inputConnection.getExtractedText(ExtractedTextRequest(), 0)?.text ?: return | ||||
|  | ||||
|                 if (Character.isLetter(codeChar) && keyboard!!.mShiftState > ShiftState.OFF) { | ||||
|                     codeChar = Character.toUpperCase(codeChar) | ||||
| @@ -175,6 +174,7 @@ class SimpleKeyboardIME : InputMethodService(), OnKeyboardActionListener, Shared | ||||
|                 if (keyboardMode != KEYBOARD_LETTERS && inputTypeClass == TYPE_CLASS_TEXT && code == MyKeyboard.KEYCODE_SPACE) { | ||||
|                     inputConnection.commitText(codeChar.toString(), 1) | ||||
|                     val newText = inputConnection.getExtractedText(ExtractedTextRequest(), 0)?.text | ||||
|                     val originalText = inputConnection.getExtractedText(ExtractedTextRequest(), 0)?.text | ||||
|                     if (originalText != newText) { | ||||
|                         switchToLetters = true | ||||
|                     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user