Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Ctrl+Shift+Arrow and Ctrl+A shortcuts to select text in the TextBox widget #1212

Closed
koutoftimer opened this issue Sep 10, 2020 · 4 comments

Comments

@koutoftimer
Copy link
Contributor

It is a feature request to add support of common shortcuts for editing text in TextBox widget:

  1. Ctrl+Shift+Arrow - to select/unselect a word (everything untill next whitespace) according to direction
  2. Ctrl+A - to select all text
@ForLoveOfCats
Copy link
Collaborator

Ctrl+shift+arrow support is supported in current master as of #1076
Ctrl+a is also supported but I'm not sure when that was added

@koutoftimer
Copy link
Contributor Author

piet-direct2d can't compile if I'm using druid's master branch

$ cargo run --release
    Blocking waiting for file lock on package cache
    Updating git repository `https://github.com/linebender/druid`
    Updating crates.io index
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
    Blocking waiting for file lock on package cache
   Compiling winapi v0.3.9
   Compiling libc v0.2.77
   Compiling bitflags v1.2.1
   Compiling utf16_lit v1.0.0
   Compiling piet v0.2.0-pre3
   Compiling keyboard-types v0.5.0
   Compiling druid-derive v0.3.1 (https://github.com/linebender/druid#5792414a)
   Compiling wio v0.2.2
   Compiling time v0.2.18
   Compiling atty v0.2.14
   Compiling simple_logger v1.9.0
   Compiling dwrote v0.11.0
   Compiling piet-direct2d v0.2.0-pre3
error[E0658]: procedural macros cannot be expanded to expressions
  --> C:\Users\Ruslan\.cargo\registry\src\github.ghproxy.top-1ecc6299db9ec823\piet-direct2d-0.2.0-pre3\src\dwrite.rs:39:32
   |
39 | const DEFAULT_LOCALE: &[u16] = utf16_lit::utf16_null!("en-US");
   |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #54727 <https://github.com/rust-lang/rust/issues/54727> for more information

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: could not compile `piet-direct2d`.

@raphlinus
Copy link
Contributor

That sounds like you have an older Rust. We're pretty enthusiastic about using newer features on stable.

@koutoftimer
Copy link
Contributor Author

Rust 1.46 stable works. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants