mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-07 12:13:20 +00:00
keymap: test the UK ISO key; the Turkish Q item applies to Windows and Linux
This commit is contained in:
@@ -256,4 +256,12 @@ fn the_iso_key_next_to_left_shift_keeps_shift_and_shows_the_layouts_character()
|
||||
// The key's name is no character, so a position that types `I` does not hide the label.
|
||||
let typed_i = Layout::new().with_char(Key::IntlBackslash, '<').with_char(Key::Quote, 'I');
|
||||
assert_eq!(label(&typed_i, "IntlBackslash", p), "<");
|
||||
|
||||
// UK: the key types `\` and `|`, keys egui has, so it runs the `\` bindings.
|
||||
let uk = Layout::new();
|
||||
let backslash = at("\\", Key::IntlBackslash);
|
||||
let pipe = at("Shift+|", Key::IntlBackslash);
|
||||
assert_eq!(uk.resolve(&backslash), Some(chord("\\")));
|
||||
assert!(uk.matches(&chord("\\"), &backslash, p));
|
||||
assert!(uk.matches(&chord("Shift+\\"), &pipe, p));
|
||||
}
|
||||
|
||||
@@ -117,10 +117,10 @@ shortcut as listed. On macOS read Ctrl as Cmd.
|
||||
Q position, which types `'`, does not run Ctrl+Q.
|
||||
- [ ] **QWERTZ** (German). Ctrl+Z undoes and Ctrl+Y redoes, on the keys labelled Z and Y. Ctrl+⇧7
|
||||
runs Ctrl+/. The menu shows Ctrl+[ as Ctrl+Ü.
|
||||
- [ ] **Turkish Q.** The Keyboard Shortcuts dialog records the key next to left Shift, which
|
||||
types `<`, as `IntlBackslash`, and with Shift held as `Shift+IntlBackslash`. Each runs its
|
||||
command, and neither runs a `\` or Shift+, binding. Once `<` has been typed, the menu shows
|
||||
Ctrl+IntlBackslash as Ctrl+<.
|
||||
- [ ] **Turkish Q** (Windows and Linux; macOS reports this key as `` ` ``). The Keyboard
|
||||
Shortcuts dialog records the key next to left Shift, which types `<`, as `IntlBackslash`,
|
||||
and with Shift held as `Shift+IntlBackslash`. Each runs its command, and neither runs a `\`
|
||||
or Shift+, binding. Once `<` has been typed, the menu shows Ctrl+IntlBackslash as Ctrl+<.
|
||||
- [ ] **Dvorak – QWERTY ⌘** (macOS). Typing gives Dvorak letters. With Cmd held, the keys follow
|
||||
QWERTY: Cmd on the QWERTY C position copies, and the menus show ⌘C.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user