cosmetic changes + enter behavior (#126)

* remove trailing whitespace

* always submit password on enter

Moves the keypress logic for keypresses from if-else statements
to switches, adds non-contextual behavior on pressing enter

* wrap pam actions and handle errors at on spot

* init all of text struct in input_text()

This gets rid off valgrind warning on unitialized variables
This commit is contained in:
Stanislav Láznička
2019-10-04 20:50:02 +02:00
committed by nullgemm
parent 95c0077416
commit 9486f05e59
5 changed files with 65 additions and 51 deletions

View File

@@ -3,6 +3,12 @@
#include "ctypes.h"
enum INPUTS {
SESSION_SWITCH,
LOGIN_INPUT,
PASSWORD_INPUT,
};
struct lang
{
char* capslock;