Skip to content

Commit b2374bc

Browse files
author
Roy Lin
committed
fix: restore AppKit activation helper import
1 parent a0c057a commit b2374bc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/appkit_native/interaction.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ use crate::event::{
44
NumberFieldStepperPressState, NumberFieldStepperTimer, PointerMoveState, PointerPressState,
55
};
66
use crate::input::{NativeEventContext, NativeInputModality, NativeKeyModifiers};
7+
use crate::semantic_event::is_press_activation_key;
78

89
pub(super) type AppKitActivationContexts = Rc<RefCell<BTreeMap<HostNodeId, NativeEventContext>>>;
910

@@ -286,7 +287,7 @@ impl AppKitNativeSurface {
286287
self.events.borrow_mut().extend(pending);
287288

288289
if registration.native_press_action
289-
&& crate::event::is_press_activation_key(registration.profile.role, Some(&key))
290+
&& is_press_activation_key(registration.profile.role, Some(&key))
290291
{
291292
let activation_context =
292293
context.handled_activation(registration.profile.normalizes_keyboard_press());

0 commit comments

Comments
 (0)