prevent accidental message submission, thanks SKB
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7330 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -549,6 +549,9 @@ void consolekey(int code, bool isdown, int cooked)
|
||||
{
|
||||
if(code==SDLK_RETURN || code==SDLK_KP_ENTER || code==SDL_AC_BUTTON_LEFT || code==SDL_AC_BUTTON_MIDDLE)
|
||||
{
|
||||
// make laptop users happy; LMB shall only work with history
|
||||
if(code == SDL_AC_BUTTON_LEFT && histpos == history.length()) return;
|
||||
|
||||
hline *h = NULL;
|
||||
if(cmdline.buf[0])
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user