X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Funix%2Finput.c;fp=src%2Funix%2Finput.c;h=f39c04fb18e2628e8855a3d60ac94b65d7b5605c;hb=d3c8a942b99443abf0c11d9759994022ed6da597;hp=6fba0fc77bc88643fee8077a8f8076f5882072bb;hpb=52d7763743e415b0a374a9845a7d9a67b9f8e321;p=oftp diff --git a/src/unix/input.c b/src/unix/input.c index 6fba0fc..f39c04f 100644 --- a/src/unix/input.c +++ b/src/unix/input.c @@ -42,6 +42,9 @@ static int convkey(int key) default: break; } + if(key >= KEY_F(1) && key <= KEY_F(12)) { + return KB_F1 + (key - KEY_F(1)); + } if(key < 128) { return key; }