Subversion Repositories Kolibri OS

Rev

Rev 6968 | Rev 7001 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6968 Rev 6994
Line 418... Line 418...
418
restore Pos    
418
restore Pos    
419
restore DstSize
419
restore DstSize
420
restore TmpBuf 
420
restore TmpBuf 
421
;----------------------------------------         
421
;----------------------------------------         
422
edit_box_key.ctrl_x:
422
edit_box_key.ctrl_x:
-
 
423
        test   word ed_flags,ed_shift_on
-
 
424
        jz     edit_box.editbox_exit        
423
        push    dword 'X'  ; this value need below to determine which action is used
425
        push    dword 'X'  ; this value need below to determine which action is used
424
        jmp     edit_box_key.ctrl_c.pushed
426
        jmp     edit_box_key.ctrl_c.pushed
Line 425... Line 427...
425
        
427
        
-
 
428
edit_box_key.ctrl_c:
-
 
429
        test   word ed_flags,ed_shift_on
426
edit_box_key.ctrl_c:
430
        jz     edit_box.editbox_exit
427
        push    dword 'C'  ; this value need below to determine which action is used
431
        push    dword 'C'  ; this value need below to determine which action is used
428
.pushed:        
432
.pushed:        
429
; add memory area
433
; add memory area
430
        mov     ecx,ed_size
434
        mov     ecx,ed_size
Line 501... Line 505...
501
        jnz     .no_valid_text
505
        jnz     .no_valid_text
502
        mov     ebx,[eax+8]
506
        mov     ebx,[eax+8]
503
; check for cp866
507
; check for cp866
504
        cmp     bl,1
508
        cmp     bl,1
505
        jnz     .no_valid_text
509
        jnz     .no_valid_text
-
 
510
; if something selected then need to delete it        
-
 
511
        test   word ed_flags,ed_shift_on
-
 
512
        jz     .selected_done 
-
 
513
        push   eax; dummy parameter ; need to
-
 
514
        push   dword .selected_done ; correctly return
-
 
515
        pushad                      ; from edit_box_key.delete
-
 
516
        jmp    edit_box_key.delete
-
 
517
.selected_done:        
506
        mov     ecx,[eax]
518
        mov     ecx,[eax]
507
        sub     ecx,3*4
519
        sub     ecx,3*4
508
; in ecx size of string to insert   
520
; in ecx size of string to insert   
509
        add     ecx,ed_size
521
        add     ecx,ed_size
510
        mov     edx,ed_max
522
        mov     edx,ed_max