/****************************************************************************
- * Copyright 2020-2021,2022 Thomas E. Dickey *
+ * Copyright 2020-2023,2024 Thomas E. Dickey *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* authorization. *
****************************************************************************/
/*
- * $Id: move_field.c,v 1.14 2022/12/10 23:31:31 tom Exp $
+ * $Id: move_field.c,v 1.16 2024/06/29 17:45:02 tom Exp $
*
* Demonstrate move_field().
*/
{ CTRL('W'), REQ_NEXT_WORD, "go to next word" },
{ CTRL('X'), REQ_CLR_FIELD, "clear field" },
{ CTRL('['), MY_QUIT, "exit form" },
- { KEY_F(1), MY_HELP, "show this screen", },
+ { HELP_KEY_2, MY_HELP, "show this screen", },
{ KEY_BACKSPACE, REQ_DEL_PREV, "delete previous character" },
{ KEY_BTAB, REQ_PREV_FIELD, "go to previous field" },
{ KEY_DOWN, REQ_DOWN_CHAR, "move down 1 character" },
if (f) {
set_field_buffer(f, 0, label);
- set_field_opts(f, (int) ((unsigned) field_opts(f) & ~O_ACTIVE));
+ set_field_opts(f, (int) ((unsigned) field_opts(f) & (unsigned) ~O_ACTIVE));
}
return (f);
}