mirror of https://github.com/quasar/Quasar.git
commit
cc5e36d2d3
|
@ -102,12 +102,14 @@ internal static void TryGetCharFromKeyboardState(int virtualKeyCode, int scanCod
|
|||
break;
|
||||
|
||||
case 1:
|
||||
chars = new[] { pwszBuff[0] };
|
||||
if (pwszBuff.Length > 0) chars = new[] { pwszBuff[0] };
|
||||
else chars = null;
|
||||
break;
|
||||
|
||||
// Two or more (only two of them is relevant)
|
||||
default:
|
||||
chars = new[] { pwszBuff[0], pwszBuff[1] };
|
||||
if (pwszBuff.Length > 1) chars = new[] { pwszBuff[0], pwszBuff[1] };
|
||||
else chars = new[] { pwszBuff[0] };
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue