mirror of
				https://github.com/SimpleMobileTools/Simple-Keyboard.git
				synced 2025-06-05 21:49:26 +02:00 
			
		
		
		
	Fixed a bug when clicking on layout change and space at the same time
This commit is contained in:
		| @@ -1154,8 +1154,8 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut | |||||||
|  |  | ||||||
|                 // fix a glitch with long pressing backspace, then clicking some letter |                 // fix a glitch with long pressing backspace, then clicking some letter | ||||||
|                 if (mRepeatKeyIndex != NOT_A_KEY) { |                 if (mRepeatKeyIndex != NOT_A_KEY) { | ||||||
|                     val key = mKeys[mRepeatKeyIndex] |                     val key = mKeys.getOrNull(mRepeatKeyIndex) | ||||||
|                     if (key.code == KEYCODE_DELETE) { |                     if (key?.code == KEYCODE_DELETE) { | ||||||
|                         mHandler?.removeMessages(MSG_REPEAT) |                         mHandler?.removeMessages(MSG_REPEAT) | ||||||
|                         mRepeatKeyIndex = NOT_A_KEY |                         mRepeatKeyIndex = NOT_A_KEY | ||||||
|                     } |                     } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user