|
@@ -2357,6 +2357,7 @@ int la_AccpetedUnicodeInput(uint32_t ch);
|
|
int la_ProcessTextEdit(laEvent *e, laStringEdit *se, laUiItem* ui){
|
|
int la_ProcessTextEdit(laEvent *e, laStringEdit *se, laUiItem* ui){
|
|
int Select=e->SpecialKeyBit&LA_KEY_SHIFT;
|
|
int Select=e->SpecialKeyBit&LA_KEY_SHIFT;
|
|
real _L, MonoWidth;
|
|
real _L, MonoWidth;
|
|
|
|
+ unsigned char* pasted;
|
|
switch (e->type){
|
|
switch (e->type){
|
|
case LA_INPUT:
|
|
case LA_INPUT:
|
|
switch (e->Input){
|
|
switch (e->Input){
|
|
@@ -2368,7 +2369,7 @@ int la_ProcessTextEdit(laEvent *e, laStringEdit *se, laUiItem* ui){
|
|
}
|
|
}
|
|
break;
|
|
break;
|
|
case LA_PASTE:
|
|
case LA_PASTE:
|
|
- unsigned char* pasted=MAIN.PasteString?MAIN.PasteString->Ptr:0; if(!pasted) break;
|
|
|
|
|
|
+ pasted=MAIN.PasteString?MAIN.PasteString->Ptr:0; if(!pasted) break;
|
|
uint32_t uni = 0, adv = 0;
|
|
uint32_t uni = 0, adv = 0;
|
|
while(uni=laToUnicode(pasted,&adv)){ pasted+=adv; if(la_AccpetedUnicodeInput(uni)){ strInsertChar(se, uni); } }
|
|
while(uni=laToUnicode(pasted,&adv)){ pasted+=adv; if(la_AccpetedUnicodeInput(uni)){ strInsertChar(se, uni); } }
|
|
return 1;
|
|
return 1;
|