Skip to content

Commit

Permalink
Comments added to termOnKeyPress function
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Jun 19, 2019
1 parent 376c298 commit 6a339df
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/k3rmit.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ static gboolean termOnKeyPress(GtkWidget *terminal, GdkEventKey *event,
UNUSED(user_data);
/* Check for CTRL, ALT and SHIFT keys */
keyState = event->state & (GDK_CONTROL_MASK | GDK_SHIFT_MASK | GDK_MOD1_MASK);
/* CTRL + binding + key */
if(keyState == (actionKey | GDK_CONTROL_MASK)){
switch (event->keyval) {
/* Copy & Paste */
Expand All @@ -138,6 +139,7 @@ static gboolean termOnKeyPress(GtkWidget *terminal, GdkEventKey *event,
configureTerm();
return TRUE;
}
/* CTRL + key */
}else if (keyState == GDK_CONTROL_MASK){
switch (event->keyval) {
/* Change font size */
Expand Down

0 comments on commit 6a339df

Please sign in to comment.