I think I found a solution to the problem in the CIOL.C Code that makes the backspace button behave like the delete button.
Here it is, let me know of any bugs, I would appreciate it.
case BACKSPACE_KEY: /* bug, when at *curpos is zero, backspace does what delete key does */
for(i=*offset+*curpos-1;str[i] != 0;i++){
str[i] = str[i+1];
}
if(*curpos != 0){
(*curpos) --;
}
else if(*curpos == 0){
(*curpos) = 0;
(*offset)--;
}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment