Skip to content

Commit

Permalink
Broket keys now work, and caps lock is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
enkiv2 committed Jul 14, 2011
1 parent 2d8e856 commit 6afc14d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/kb.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ unsigned char kbd_shifted[128] = {
'A', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', ':', /* 39 */
'\"', '~', 0,
'|', 'Z', 'X', 'C', 'V', 'B', 'N', /* 49 */
'M', ',', '.', '?', 0, /* Right shift */
'M', '<', '>', '?', 0, /* Right shift */
'*',
0, /* Alt */
' ', /* Space bar */
Expand Down
Binary file modified src/fd.img
Binary file not shown.
2 changes: 1 addition & 1 deletion src/kb.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void keyboard_handler(struct regs *r) {
}
} else if(mode&1) {
kb_buf=kbd_shifted[scancode];
/*if(!(mode&3)) */ mode&=0xfe; // turn off caps
if(!(mode&2)) mode&=0xfe; // turn off caps
} else {
kb_buf=kbd[scancode];
}
Expand Down
4 changes: 2 additions & 2 deletions src/zz.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ const void nav_cells(int pid) { //@ handle navigation, display, and editing
*((char*)((istream_begin)+get_cell(currcell)->start+i))=editbuf[i];
} else {
*((char*)((istream_begin)+get_cell(currcell)->start+i))=editbuf[i];
get_cell(currcell)->end=get_cell(currcell)->start+i;
get_cell(currcell)->end=get_cell(currcell)->start+strlen(editbuf);
modality=0;
break;
}
Expand Down Expand Up @@ -374,7 +374,7 @@ const void nav_cells(int pid) { //@ handle navigation, display, and editing
for(i=0; i<max_edit_size-2 && editbuf[i]!=0; i++)
*((char*)((istream_begin)+get_cell(currcell)->start+i))=editbuf[i];
*((char*)((istream_begin)+get_cell(currcell)->start+i))=editbuf[i];
get_cell(currcell)->end=get_cell(currcell)->start+i;
get_cell(currcell)->end=get_cell(currcell)->start+strlen(editbuf);
modality=0;
}
}
Expand Down

0 comments on commit 6afc14d

Please sign in to comment.