mirror of
https://github.com/Julow/Unexpected-Keyboard.git
synced 2024-11-25 16:53:24 +01:00
Fix crash when auto-capitalisation runs too soon
This is unexpected but happens once.
This commit is contained in:
parent
4f5ce66347
commit
bc8bcce82a
@ -93,6 +93,8 @@ public class Keyboard2View extends View
|
||||
/** Called by auto-capitalisation. */
|
||||
public void set_shift_state(boolean state)
|
||||
{
|
||||
if (_keyboard == null)
|
||||
return;
|
||||
KeyValue shift = KeyValue.getKeyByName("shift");
|
||||
KeyboardData.Key key = _keyboard.findKeyWithValue(shift);
|
||||
if (key == null)
|
||||
|
Loading…
Reference in New Issue
Block a user