ctrl can now be used to prevent special action in input bar
This commit is contained in:
parent
e31d984685
commit
3dec0702da
1 changed files with 4 additions and 1 deletions
|
@ -258,7 +258,10 @@ impl Widgets<AppModel, ()> for AppWidgets {
|
||||||
add_controller = >k::EventControllerKey {
|
add_controller = >k::EventControllerKey {
|
||||||
connect_key_pressed(sender) => move |_, key, _, state| {
|
connect_key_pressed(sender) => move |_, key, _, state| {
|
||||||
send!(sender, AppMsg::InputUpdate);
|
send!(sender, AppMsg::InputUpdate);
|
||||||
if !state.contains(gdk::ModifierType::SHIFT_MASK) {
|
if !(
|
||||||
|
state.contains(gdk::ModifierType::SHIFT_MASK) ||
|
||||||
|
state.contains(gdk::ModifierType::CONTROL_MASK)
|
||||||
|
) {
|
||||||
match key {
|
match key {
|
||||||
gdk::Key::Return => {
|
gdk::Key::Return => {
|
||||||
send!(sender, AppMsg::Eval);
|
send!(sender, AppMsg::Eval);
|
||||||
|
|
Loading…
Reference in a new issue