T O P

  • By -

iandunn

Thanks! That example helped me do something similar. I sometimes accidentally submit a form because `OSM(L_GUI)` is on, so I wanted to do nothing for the `OSM(L_GUI) + KS_ENTER` sequence. That way I have to hold down `L_GUI` when pressing `enter` to submit the message. bool process_record_user( uint16_t keycode, keyrecord_t *record ) { switch ( keycode ) { case KC_ENTER: if ( record->event.pressed ) { if ( get_oneshot_mods() == MOD_LGUI ) { return false; } } break; } return true; }