Fix cursor focus and selection in input box, add AWS env var warning box, and remove AWS Bedrock login banner
This commit is contained in:
@@ -5,11 +5,6 @@ use std::path::PathBuf;
|
||||
|
||||
use cocoa::base::id;
|
||||
use futures_util::future::LocalBoxFuture;
|
||||
use objc::runtime::{Object, Sel, BOOL, NO, YES};
|
||||
use objc2::rc::{autoreleasepool, Retained};
|
||||
use objc2::{msg_send, AnyThread, MainThreadMarker};
|
||||
use objc2_app_kit::{NSAlert, NSApplication, NSImage, NSRunningApplication};
|
||||
use objc2_foundation::{NSArray, NSData, NSString, NSUInteger, NSURL};
|
||||
use galaxyui_core::assets::AssetProvider;
|
||||
use galaxyui_core::integration::TestDriver;
|
||||
use galaxyui_core::keymap::{Keystroke, Trigger};
|
||||
@@ -20,6 +15,11 @@ use galaxyui_core::platform::app::{
|
||||
use galaxyui_core::platform::menu::{Menu, MenuBar};
|
||||
use galaxyui_core::platform::{self, FilePickerCallback, SaveFilePickerCallback};
|
||||
use galaxyui_core::{AppContext, Event};
|
||||
use objc::runtime::{Object, Sel, BOOL, NO, YES};
|
||||
use objc2::rc::{autoreleasepool, Retained};
|
||||
use objc2::{msg_send, AnyThread, MainThreadMarker};
|
||||
use objc2_app_kit::{NSAlert, NSApplication, NSImage, NSRunningApplication};
|
||||
use objc2_foundation::{NSArray, NSData, NSString, NSUInteger, NSURL};
|
||||
|
||||
use super::keycode::{Keycode, CMD_KEY, CONTROL_KEY, OPTION_KEY, SHIFT_KEY};
|
||||
use super::menus::{make_dock_menu, make_main_menu};
|
||||
|
||||
@@ -4,10 +4,10 @@ use std::slice;
|
||||
|
||||
use anyhow::Result;
|
||||
use cocoa::base::id;
|
||||
use galaxyui_core::clipboard::{ClipboardContent, ImageData};
|
||||
use objc2::rc::Retained;
|
||||
use objc2_app_kit::{NSPasteboard, NSPasteboardTypeHTML, NSPasteboardTypeString};
|
||||
use objc2_foundation::{ns_string, NSArray, NSData, NSString};
|
||||
use galaxyui_core::clipboard::{ClipboardContent, ImageData};
|
||||
|
||||
extern "C" {
|
||||
fn getFilePathsFromPasteboard() -> id;
|
||||
|
||||
@@ -4,10 +4,6 @@ use std::sync::Arc;
|
||||
|
||||
use anyhow::Result;
|
||||
use cocoa::base::{id, nil, BOOL, NO, YES};
|
||||
use objc2::{msg_send, MainThreadMarker};
|
||||
use objc2_app_kit::{NSApplication, NSCursor, NSRequestUserAttentionType};
|
||||
use objc2_av_foundation::{AVAuthorizationStatus, AVCaptureDevice, AVMediaTypeAudio};
|
||||
use objc2_foundation::NSUInteger;
|
||||
use galaxyui_core::accessibility::AccessibilityContent;
|
||||
use galaxyui_core::clipboard::InMemoryClipboard;
|
||||
use galaxyui_core::keymap::Keystroke;
|
||||
@@ -20,6 +16,10 @@ use galaxyui_core::platform::{
|
||||
SendNotificationErrorCallback, TerminationMode,
|
||||
};
|
||||
use galaxyui_core::{platform, ApplicationBundleInfo, WindowId};
|
||||
use objc2::{msg_send, MainThreadMarker};
|
||||
use objc2_app_kit::{NSApplication, NSCursor, NSRequestUserAttentionType};
|
||||
use objc2_av_foundation::{AVAuthorizationStatus, AVCaptureDevice, AVMediaTypeAudio};
|
||||
use objc2_foundation::NSUInteger;
|
||||
|
||||
use super::app::create_native_platform_modal;
|
||||
use super::keycode::{modifier_code, Keycode};
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
use std::ffi::CStr;
|
||||
|
||||
use cocoa::base::id;
|
||||
use objc2_app_kit::{NSEvent, NSEventModifierFlags, NSEventType};
|
||||
use objc2_foundation::NSUInteger;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use galaxyui_core::event::{KeyEventDetails, ModifiersState};
|
||||
use galaxyui_core::keymap::Keystroke;
|
||||
use galaxyui_core::platform::keyboard::{KeyCode, PhysicalKey};
|
||||
use galaxyui_core::Event;
|
||||
use objc2_app_kit::{NSEvent, NSEventModifierFlags, NSEventType};
|
||||
use objc2_foundation::NSUInteger;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
|
||||
use super::keycode::{scancode_to_physicalkey, Keycode};
|
||||
use super::utils::unicode_char_to_key;
|
||||
|
||||
@@ -24,9 +24,9 @@ use font_kit::font::Font;
|
||||
use font_kit::loaders::core_text::NativeFont;
|
||||
use futures::future::BoxFuture;
|
||||
use futures::FutureExt as _;
|
||||
use galaxyui_core::fonts::canvas::RasterFormat;
|
||||
use galaxyui_core::fonts::{
|
||||
canvas::RasterFormat, FamilyId, FontId, FontInfo, GlyphId, Metrics, Properties,
|
||||
RasterizedGlyph, SubpixelAlignment,
|
||||
FamilyId, FontId, FontInfo, GlyphId, Metrics, Properties, RasterizedGlyph, SubpixelAlignment,
|
||||
};
|
||||
use galaxyui_core::platform::{self, FontDB as _, LineStyle, TextLayoutSystem};
|
||||
use galaxyui_core::rendering;
|
||||
|
||||
@@ -2,10 +2,10 @@ use std::slice;
|
||||
|
||||
use cocoa::base::{id, BOOL};
|
||||
use cocoa::foundation::NSUInteger;
|
||||
use objc2::rc::Retained;
|
||||
use objc2_foundation::{NSArray, NSNumber, NSString};
|
||||
use galaxyui_core::keymap::Keystroke;
|
||||
use galaxyui_core::platform::keyboard::{KeyCode, NativeKeyCode, PhysicalKey};
|
||||
use objc2::rc::Retained;
|
||||
use objc2_foundation::{NSArray, NSNumber, NSString};
|
||||
|
||||
// Modifier key mask values for the Carbon API.
|
||||
pub const CMD_KEY: u16 = 256;
|
||||
|
||||
@@ -5,6 +5,12 @@ use std::ffi::c_void;
|
||||
use std::rc::Rc;
|
||||
|
||||
use cocoa::base::{id, nil};
|
||||
use galaxyui_core::actions::StandardAction;
|
||||
use galaxyui_core::keymap::Keystroke;
|
||||
use galaxyui_core::platform::menu::{
|
||||
ItemTriggeredCallback, Menu, MenuBar, MenuItem, MenuItemProperties, MenuItemPropertyChanges,
|
||||
UpdateMenuItemCallback,
|
||||
};
|
||||
use lazy_static::lazy_static;
|
||||
use objc2::rc::{autoreleasepool, Retained};
|
||||
use objc2::runtime::Sel;
|
||||
@@ -20,12 +26,6 @@ use objc2_app_kit::{
|
||||
NSUpArrowFunctionKey,
|
||||
};
|
||||
use objc2_foundation::{ns_string, NSInteger, NSString};
|
||||
use galaxyui_core::actions::StandardAction;
|
||||
use galaxyui_core::keymap::Keystroke;
|
||||
use galaxyui_core::platform::menu::{
|
||||
ItemTriggeredCallback, Menu, MenuBar, MenuItem, MenuItemProperties, MenuItemPropertyChanges,
|
||||
UpdateMenuItemCallback,
|
||||
};
|
||||
|
||||
use super::app::callback_dispatcher;
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
use anyhow::{anyhow, Result};
|
||||
use chrono::DateTime;
|
||||
use cocoa::base::id;
|
||||
use objc2_foundation::NSUInteger;
|
||||
use galaxyui_core::notification::{
|
||||
NotificationResponse, NotificationSendError, RequestPermissionsOutcome,
|
||||
};
|
||||
use objc2_foundation::NSUInteger;
|
||||
|
||||
use super::utils::nsstring_as_str;
|
||||
|
||||
|
||||
@@ -7,6 +7,11 @@ use std::ptr::NonNull;
|
||||
use std::sync::Once;
|
||||
|
||||
use dispatch2::DispatchData;
|
||||
use galaxyui_core::fonts::{self, canvas, RasterizedGlyph, SubpixelAlignment};
|
||||
use galaxyui_core::platform::CapturedFrame;
|
||||
use galaxyui_core::rendering::texture_cache::TextureCache;
|
||||
use galaxyui_core::rendering::{self};
|
||||
use galaxyui_core::scene::{CornerRadius, GlyphFade, GlyphKey, Icon, Image, Layer, Scene};
|
||||
use objc2::rc::Retained;
|
||||
use objc2::runtime::ProtocolObject;
|
||||
use objc2_foundation::NSString;
|
||||
@@ -22,11 +27,6 @@ use objc2_quartz_core::CAMetalDrawable;
|
||||
use pathfinder_color::{ColorF, ColorU};
|
||||
use pathfinder_geometry::rect::{RectF, RectI};
|
||||
use pathfinder_geometry::vector::{vec2f, Vector2F};
|
||||
use galaxyui_core::fonts::{self, canvas, RasterizedGlyph, SubpixelAlignment};
|
||||
use galaxyui_core::platform::CapturedFrame;
|
||||
use galaxyui_core::rendering::texture_cache::TextureCache;
|
||||
use galaxyui_core::rendering::{self};
|
||||
use galaxyui_core::scene::{CornerRadius, GlyphFade, GlyphKey, Icon, Image, Layer, Scene};
|
||||
|
||||
use super::frame_capture::capture_frame;
|
||||
use crate::platform::mac::rendering::renderer::Device;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
use std::collections::HashMap;
|
||||
|
||||
use galaxyui_core::rendering;
|
||||
use objc2::runtime::ProtocolObject;
|
||||
use objc2_metal::{MTLDevice, MTLPixelFormat};
|
||||
use galaxyui_core::rendering;
|
||||
|
||||
use crate::platform::mac::rendering::metal::renderer::Renderer;
|
||||
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
use objc2::rc::Retained;
|
||||
use objc2::runtime::ProtocolObject;
|
||||
use objc2_app_kit::{NSView, NSWindow};
|
||||
use objc2_metal::MTLDevice;
|
||||
use galaxyui_core::rendering::{
|
||||
GPUBackend, GPUDeviceInfo, GPUDeviceType, GPUPowerPreference, OnGPUDeviceSelected,
|
||||
};
|
||||
use galaxyui_core::{fonts, Scene};
|
||||
use objc2::rc::Retained;
|
||||
use objc2::runtime::ProtocolObject;
|
||||
use objc2_app_kit::{NSView, NSWindow};
|
||||
use objc2_metal::MTLDevice;
|
||||
|
||||
use crate::platform::mac::rendering::is_integrated_gpu;
|
||||
use crate::platform::mac::window::WindowState;
|
||||
|
||||
@@ -27,17 +27,16 @@ use core_text::run::{CTRun, CTRunRef};
|
||||
use core_text::string_attributes::{
|
||||
kCTFontAttributeName, kCTKernAttributeName, kCTParagraphStyleAttributeName,
|
||||
};
|
||||
use itertools::Itertools;
|
||||
use ordered_float::OrderedFloat;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use vec1::Vec1;
|
||||
|
||||
use galaxyui_core::fonts::GlyphId;
|
||||
use galaxyui_core::platform::{CapturedFrame, LineStyle};
|
||||
use galaxyui_core::platform::LineStyle;
|
||||
use galaxyui_core::text_layout::{
|
||||
CaretPosition, ClipConfig, Glyph, Line, Run, StyleAndFont, TextAlignment, TextBorder,
|
||||
TextFrame, TextStyle,
|
||||
};
|
||||
use itertools::Itertools;
|
||||
use ordered_float::OrderedFloat;
|
||||
use pathfinder_geometry::vector::vec2f;
|
||||
use vec1::Vec1;
|
||||
|
||||
use super::fonts::FontDB;
|
||||
use super::utils::{cg_color_to_color_u, color_u_to_cg_color};
|
||||
|
||||
@@ -9,6 +9,18 @@ use std::time::Duration;
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use cocoa::base::id;
|
||||
use galaxyui_core::accessibility::AccessibilityContent;
|
||||
use galaxyui_core::actions::StandardAction;
|
||||
use galaxyui_core::event::ModifiersState;
|
||||
use galaxyui_core::platform::{
|
||||
self, file_picker, FilePickerCallback, FilePickerConfiguration, FullscreenState,
|
||||
GraphicsBackend, TerminationMode, WindowBounds, WindowFocusBehavior, WindowOptions,
|
||||
WindowStyle,
|
||||
};
|
||||
use galaxyui_core::r#async::{executor, Timer};
|
||||
use galaxyui_core::rendering::GPUPowerPreference;
|
||||
use galaxyui_core::windowing::WindowCallbacks;
|
||||
use galaxyui_core::{DisplayId, DisplayIdx, Event, OptionalPlatformWindow, Scene, WindowId};
|
||||
use instant::Instant;
|
||||
use num_traits::FromPrimitive;
|
||||
use objc::runtime::Object;
|
||||
@@ -23,18 +35,6 @@ use objc2_metal::{MTLCopyAllDevices, MTLCreateSystemDefaultDevice, MTLDevice};
|
||||
use objc2_quartz_core::CAMetalLayer;
|
||||
use pathfinder_geometry::rect::RectF;
|
||||
use pathfinder_geometry::vector::{vec2f, Vector2F};
|
||||
use galaxyui_core::accessibility::AccessibilityContent;
|
||||
use galaxyui_core::actions::StandardAction;
|
||||
use galaxyui_core::event::ModifiersState;
|
||||
use galaxyui_core::platform::{
|
||||
self, file_picker, FilePickerCallback, FilePickerConfiguration, FullscreenState,
|
||||
GraphicsBackend, TerminationMode, WindowBounds, WindowFocusBehavior, WindowOptions,
|
||||
WindowStyle,
|
||||
};
|
||||
use galaxyui_core::r#async::{executor, Timer};
|
||||
use galaxyui_core::rendering::GPUPowerPreference;
|
||||
use galaxyui_core::windowing::WindowCallbacks;
|
||||
use galaxyui_core::{DisplayId, DisplayIdx, Event, OptionalPlatformWindow, Scene, WindowId};
|
||||
|
||||
use super::delegate::DispatchDelegate;
|
||||
use super::rendering::{self, is_integrated_gpu, Device, RendererManager};
|
||||
|
||||
@@ -2,12 +2,12 @@ pub(crate) mod hidden_input;
|
||||
pub(crate) mod mobile_detection;
|
||||
pub(crate) mod soft_keyboard;
|
||||
|
||||
// Re-export the functions from the core crate.
|
||||
pub use galaxyui_core::platform::wasm::*;
|
||||
use gloo::events::{EventListener, EventListenerOptions};
|
||||
pub use hidden_input::{HiddenInput, HiddenInputEvent, InputCallback};
|
||||
pub use mobile_detection::{is_mobile_device, is_mobile_user_agent};
|
||||
pub use soft_keyboard::{SoftKeyboardInput, SoftKeyboardManager, SoftKeyboardState};
|
||||
// Re-export the functions from the core crate.
|
||||
pub use galaxyui_core::platform::wasm::*;
|
||||
use wasm_bindgen::{JsCast, UnwrapThrowExt};
|
||||
|
||||
use super::KEYS_TO_IGNORE;
|
||||
|
||||
Reference in New Issue
Block a user