Move binding function back into keybinding module

This commit is contained in:
Piotr Osiewicz 2023-11-19 11:54:46 +01:00
parent 31336b0b7d
commit e83a297229

View file

@ -1,4 +1,4 @@
use gpui::Action;
use gpui::{actions, Action};
use strum::EnumIter;
use crate::prelude::*;
@ -74,6 +74,12 @@ pub enum ModifierKey {
Shift,
}
actions!(NoAction);
pub fn binding(key: &str) -> gpui::KeyBinding {
gpui::KeyBinding::new(key, NoAction {}, None)
}
#[cfg(feature = "stories")]
pub use stories::*;