@ -511,11 +511,21 @@ impl Component for Prompt {
ctrl ! ( 'e' ) | key ! ( End ) = > self . move_end ( ) ,
ctrl ! ( 'e' ) | key ! ( End ) = > self . move_end ( ) ,
ctrl ! ( 'a' ) | key ! ( Home ) = > self . move_start ( ) ,
ctrl ! ( 'a' ) | key ! ( Home ) = > self . move_start ( ) ,
ctrl ! ( 'w' ) | alt ! ( Backspace ) | ctrl ! ( Backspace ) = > {
ctrl ! ( 'w' ) | alt ! ( Backspace ) | ctrl ! ( Backspace ) = > {
self . delete_word_backwards ( cx . editor )
self . delete_word_backwards ( cx . editor ) ;
( self . callback_fn ) ( cx , & self . line , PromptEvent ::Update ) ;
}
alt ! ( 'd' ) | alt ! ( Delete ) | ctrl ! ( Delete ) = > {
self . delete_word_forwards ( cx . editor ) ;
( self . callback_fn ) ( cx , & self . line , PromptEvent ::Update ) ;
}
ctrl ! ( 'k' ) = > {
self . kill_to_end_of_line ( cx . editor ) ;
( self . callback_fn ) ( cx , & self . line , PromptEvent ::Update ) ;
}
ctrl ! ( 'u' ) = > {
self . kill_to_start_of_line ( cx . editor ) ;
( self . callback_fn ) ( cx , & self . line , PromptEvent ::Update ) ;
}
}
alt ! ( 'd' ) | alt ! ( Delete ) | ctrl ! ( Delete ) = > self . delete_word_forwards ( cx . editor ) ,
ctrl ! ( 'k' ) = > self . kill_to_end_of_line ( cx . editor ) ,
ctrl ! ( 'u' ) = > self . kill_to_start_of_line ( cx . editor ) ,
ctrl ! ( 'h' ) | key ! ( Backspace ) | shift ! ( Backspace ) = > {
ctrl ! ( 'h' ) | key ! ( Backspace ) | shift ! ( Backspace ) = > {
self . delete_char_backwards ( cx . editor ) ;
self . delete_char_backwards ( cx . editor ) ;
( self . callback_fn ) ( cx , & self . line , PromptEvent ::Update ) ;
( self . callback_fn ) ( cx , & self . line , PromptEvent ::Update ) ;