Skip to content

Commit c76ffd4

Browse files
committed
fix merge conflicts
1 parent a0f596b commit c76ffd4

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

crates/settings_ui/src/keybindings.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ use gpui::{
1414
Action, AppContext as _, AsyncApp, Axis, ClickEvent, Context, DismissEvent, Entity,
1515
EventEmitter, FocusHandle, Focusable, Global, IsZero,
1616
KeyBindingContextPredicate::{And, Descendant, Equal, Identifier, Not, NotEqual, Or},
17-
KeyContext, KeybindingKeystroke,Keystroke, MouseButton, Point, ScrollStrategy, ScrollWheelEvent, Stateful,
18-
StyledText, Subscription, Task, TextStyleRefinement, WeakEntity, actions, anchored, deferred,
19-
div,
17+
KeyContext, KeybindingKeystroke, Keystroke, MouseButton, Point, ScrollStrategy,
18+
ScrollWheelEvent, Stateful, StyledText, Subscription, Task, TextStyleRefinement, WeakEntity,
19+
actions, anchored, deferred, div,
2020
};
2121
use language::{Language, LanguageConfig, ToOffset as _};
2222
use notifications::status_toast::{StatusToast, ToastIcon};
@@ -236,7 +236,7 @@ struct ConflictState {
236236
}
237237

238238
type ConflictKeybindMapping = HashMap<
239-
Vec<Keystroke>,
239+
Vec<KeybindingKeystroke>,
240240
Vec<(
241241
Option<gpui::KeyBindingContextPredicate>,
242242
Vec<ConflictOrigin>,

crates/ui/src/components/keybinding.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ pub fn render_keybinding_keystroke(
165165
if use_text {
166166
let element = Key::new(
167167
keystroke_text(
168-
&keystroke.modifiers,
168+
&keystroke.display_modifiers,
169169
&keystroke.display_key,
170170
platform_style,
171171
vim_mode,
@@ -178,7 +178,7 @@ pub fn render_keybinding_keystroke(
178178
} else {
179179
let mut elements = Vec::new();
180180
elements.extend(render_modifiers(
181-
&keystroke.modifiers,
181+
&keystroke.display_modifiers,
182182
platform_style,
183183
color,
184184
size,
@@ -418,7 +418,7 @@ pub fn text_for_keybinding_keystrokes(keystrokes: &[KeybindingKeystroke], cx: &A
418418
.iter()
419419
.map(|keystroke| {
420420
keystroke_text(
421-
&keystroke.modifiers,
421+
&keystroke.display_modifiers,
422422
&keystroke.display_key,
423423
platform_style,
424424
vim_enabled,

0 commit comments

Comments
 (0)