forked from KolibriOS/kolibrios
t_edit fix buttons [Caps] and [Shift]
git-svn-id: svn://kolibrios.org@3903 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
f530cc1eb1
commit
86442bc3e0
@ -336,80 +336,85 @@ proc ted_key, edit:dword, table:dword, control:dword
|
|||||||
call ted_draw_main_cursor
|
call ted_draw_main_cursor
|
||||||
mov ted_drag_k,0 ;§ ª 稢 ¥¬ ¢ë¤¥«¥¨¥ ®â ª« ¢¨ âãàë
|
mov ted_drag_k,0 ;§ ª 稢 ¥¬ ¢ë¤¥«¥¨¥ ®â ª« ¢¨ âãàë
|
||||||
@@:
|
@@:
|
||||||
cmp ah,75 ;176 ;Left
|
cmp ah,75 ;176 ;Left
|
||||||
jne @f
|
jne @f
|
||||||
call ted_draw_cursor_sumb
|
call ted_draw_cursor_sumb
|
||||||
call ted_cur_move_left
|
call ted_cur_move_left
|
||||||
cmp dl,8
|
cmp dl,8
|
||||||
jne .no_red_2
|
jne .no_red_2
|
||||||
call ted_scroll_set_redraw
|
call ted_scroll_set_redraw
|
||||||
stdcall ted_draw,edi
|
stdcall ted_draw,edi
|
||||||
jmp @f
|
jmp @f
|
||||||
.no_red_2:
|
.no_red_2:
|
||||||
call ted_draw_main_cursor
|
call ted_draw_main_cursor
|
||||||
mov ted_drag_k,0 ;§ ª 稢 ¥¬ ¢ë¤¥«¥¨¥ ®â ª« ¢¨ âãàë
|
mov ted_drag_k,0 ;§ ª 稢 ¥¬ ¢ë¤¥«¥¨¥ ®â ª« ¢¨ âãàë
|
||||||
@@:
|
@@:
|
||||||
cmp ah,77 ;179 ;Right
|
cmp ah,77 ;179 ;Right
|
||||||
jne @f
|
jne @f
|
||||||
call ted_draw_cursor_sumb
|
call ted_draw_cursor_sumb
|
||||||
call ted_cur_move_right
|
call ted_cur_move_right
|
||||||
cmp dl,8
|
cmp dl,8
|
||||||
jne .no_red_3
|
jne .no_red_3
|
||||||
call ted_scroll_set_redraw
|
call ted_scroll_set_redraw
|
||||||
stdcall ted_draw,edi
|
stdcall ted_draw,edi
|
||||||
jmp @f
|
jmp @f
|
||||||
.no_red_3:
|
.no_red_3:
|
||||||
call ted_draw_main_cursor
|
call ted_draw_main_cursor
|
||||||
mov ted_drag_k,0 ;§ ª 稢 ¥¬ ¢ë¤¥«¥¨¥ ®â ª« ¢¨ âãàë
|
mov ted_drag_k,0 ;§ ª 稢 ¥¬ ¢ë¤¥«¥¨¥ ®â ª« ¢¨ âãàë
|
||||||
@@:
|
@@:
|
||||||
cmp ah,71 ;180 ;Home
|
cmp ah,71 ;180 ;Home
|
||||||
jne @f
|
jne @f
|
||||||
call ted_draw_cursor_sumb
|
call ted_draw_cursor_sumb
|
||||||
call ted_cur_move_x_first_char
|
call ted_cur_move_x_first_char
|
||||||
cmp dl,8
|
cmp dl,8
|
||||||
jne .no_red_4
|
jne .no_red_4
|
||||||
call ted_scroll_set_redraw
|
call ted_scroll_set_redraw
|
||||||
stdcall ted_draw,edi
|
stdcall ted_draw,edi
|
||||||
jmp @f
|
jmp @f
|
||||||
.no_red_4:
|
.no_red_4:
|
||||||
call ted_draw_main_cursor
|
call ted_draw_main_cursor
|
||||||
mov ted_drag_k,0 ;§ ª 稢 ¥¬ ¢ë¤¥«¥¨¥ ®â ª« ¢¨ âãàë
|
mov ted_drag_k,0 ;§ ª 稢 ¥¬ ¢ë¤¥«¥¨¥ ®â ª« ¢¨ âãàë
|
||||||
@@:
|
@@:
|
||||||
cmp ah,79 ;181 ;End
|
cmp ah,79 ;181 ;End
|
||||||
jne @f
|
jne @f
|
||||||
call ted_draw_cursor_sumb
|
call ted_draw_cursor_sumb
|
||||||
call ted_cur_move_x_last_char
|
call ted_cur_move_x_last_char
|
||||||
cmp dl,8
|
cmp dl,8
|
||||||
jne .no_red_5
|
jne .no_red_5
|
||||||
call ted_scroll_set_redraw
|
call ted_scroll_set_redraw
|
||||||
stdcall ted_draw,edi
|
stdcall ted_draw,edi
|
||||||
jmp @f
|
jmp @f
|
||||||
.no_red_5:
|
.no_red_5:
|
||||||
call ted_draw_main_cursor
|
call ted_draw_main_cursor
|
||||||
mov ted_drag_k,0 ;§ ª 稢 ¥¬ ¢ë¤¥«¥¨¥ ®â ª« ¢¨ âãàë
|
mov ted_drag_k,0 ;§ ª 稢 ¥¬ ¢ë¤¥«¥¨¥ ®â ª« ¢¨ âãàë
|
||||||
@@:
|
@@:
|
||||||
cmp ah,73 ;184 ;PageUp
|
cmp ah,73 ;184 ;PageUp
|
||||||
jne @f
|
jne @f
|
||||||
call ted_cur_move_page_up
|
call ted_cur_move_page_up
|
||||||
cmp dl,0
|
cmp dl,0
|
||||||
je @f
|
je @f
|
||||||
call ted_scroll_set_redraw
|
call ted_scroll_set_redraw
|
||||||
stdcall ted_draw,edi
|
stdcall ted_draw,edi
|
||||||
@@:
|
@@:
|
||||||
cmp ah,81 ;183 ;PageDown
|
cmp ah,81 ;183 ;PageDown
|
||||||
jne @f
|
jne @f
|
||||||
call ted_cur_move_page_down
|
call ted_cur_move_page_down
|
||||||
cmp dl,0
|
cmp dl,0
|
||||||
je @f
|
je @f
|
||||||
call ted_scroll_set_redraw
|
call ted_scroll_set_redraw
|
||||||
stdcall ted_draw,edi
|
stdcall ted_draw,edi
|
||||||
mov ted_drag_k,0 ;§ ª 稢 ¥¬ ¢ë¤¥«¥¨¥ ®â ª« ¢¨ âãàë
|
mov ted_drag_k,0 ;§ ª 稢 ¥¬ ¢ë¤¥«¥¨¥ ®â ª« ¢¨ âãàë
|
||||||
@@:
|
@@:
|
||||||
;-------------------------------------------------
|
;-------------------------------------------------
|
||||||
; cmp esi,0
|
|
||||||
; jne .end_key_fun
|
|
||||||
.key_MoveCur:
|
.key_MoveCur:
|
||||||
|
|
||||||
|
;¨¦¥ ¯à®¯ã᪠îâáï á«ã¦¥¡ë¥ ª« ¢¨è¨, ª®â®àë¥ ¬®£ãâ ¤ ¢ âì ¬ãá®àë¥ á¨¬¢®«ë ¢ ®ª®
|
||||||
|
cmp ah,42 ;[L Shift] ª®£¤ ¦ â ¡¥§ ¤àã£¨å ª®¯®ª
|
||||||
|
je .end_key_fun
|
||||||
|
cmp ah,54 ;[R Shift] ª®£¤ ¦ â ¡¥§ ¤àã£¨å ª®¯®ª
|
||||||
|
je .end_key_fun
|
||||||
|
cmp ah,58 ;[Caps Lock]
|
||||||
|
je .end_key_fun
|
||||||
cmp ah,69 ;[Pause Break]
|
cmp ah,69 ;[Pause Break]
|
||||||
je .end_key_fun
|
je .end_key_fun
|
||||||
cmp ah,120 ;[Fn]
|
cmp ah,120 ;[Fn]
|
||||||
|
Loading…
Reference in New Issue
Block a user