mirror of
https://github.com/zed-industries/zed.git
synced 2025-02-07 02:57:34 +00:00
Move binding function back into keybinding module
This commit is contained in:
parent
31336b0b7d
commit
e83a297229
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
use gpui::Action;
|
use gpui::{actions, Action};
|
||||||
use strum::EnumIter;
|
use strum::EnumIter;
|
||||||
|
|
||||||
use crate::prelude::*;
|
use crate::prelude::*;
|
||||||
|
@ -74,6 +74,12 @@ pub enum ModifierKey {
|
||||||
Shift,
|
Shift,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
actions!(NoAction);
|
||||||
|
|
||||||
|
pub fn binding(key: &str) -> gpui::KeyBinding {
|
||||||
|
gpui::KeyBinding::new(key, NoAction {}, None)
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(feature = "stories")]
|
#[cfg(feature = "stories")]
|
||||||
pub use stories::*;
|
pub use stories::*;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue