sxyazi / yazi

💥 Blazing fast terminal file manager written in Rust, based on async I/O.
https://yazi-rs.github.io
MIT License
11.43k stars 266 forks source link

`yazi` is "eating" the `fn` key (treating `fn+key` combinations as a plain `key` combination #1212

Closed VKondakoff closed 5 days ago

VKondakoff commented 5 days ago

What system are you running Yazi on?

macOS

What terminal are you running Yazi in?

iTerm2

Did you try the latest code to see if this problem got fixed?

Tried, but the problem still

yazi --debug output

```sh Yazi Version: 0.2.5 (Homebrew 2024-06-22) Debug : false OS : macos-x86_64 (unix) Ya Version: 0.2.5 Emulator Emulator.via_env: ("xterm-256color", "iTerm.app") Emulator.via_csi: Ok(Iterm2) Emulator.detect : Iterm2 Adapter Adapter.matches: Iterm2 Desktop XDG_SESSION_TYPE: None WAYLAND_DISPLAY : None DISPLAY : None SSH shared.in_ssh_connection: false WSL /proc/sys/fs/binfmt_misc/WSLInterop: false Variables SHELL : Some("/bin/zsh") EDITOR : Some("kak -c vk") ZELLIJ_SESSION_NAME: None YAZI_FILE_ONE : None YAZI_CONFIG_HOME : None Text Opener default: Some(Opener { run: "${EDITOR:=vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true }) block : Some(Opener { run: "${EDITOR:=vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for_: None, spread: true }) tmux TMUX : false Version: No such file or directory (os error 2) Dependencies file : 5.41 ueberzugpp : No such file or directory (os error 2) ffmpegthumbnailer: 2.2.2 magick : No such file or directory (os error 2) fzf : 0.53.0 fd : 10.1.0 rg : 14.1.0 chafa : No such file or directory (os error 2) zoxide : 0.9.4 unar : 1.10.7 jq : 1.7.1 -------------------------------------------------- When reporting a bug, please also upload the `yazi.log` log file - only upload the most recent content by time. You can find it in the "/Users/valerykondakoff/.local/state/yazi" directory. ```

Describe the bug

I can not use fn-key' combinations when yazi is launched, because yazi thinksfn-keyis just a plainkey`.

Expected Behavior

fn is a modifier key similar to ctrl and shift. So, the fn-f hotkey differs from just f.

To Reproduce

Fn-f is a default hotkey to launch window fullscreen on macOS:

Снимок экрана 2024-06-25 в 16 00 16

When there is no yazi launched I can press fn-f to make iTerm2 window fullscreen. If there is yazi loaded the fn-f hotkey is treated as the plain f:

Снимок экрана 2024-06-25 в 16 00 26

Configuration

No response

Anything else?

No response

sxyazi commented 5 days ago

fn is a modifier key similar to ctrl and shift. So, the fn-f hotkey differs from just f.

No, as far as I know, no terminal supports sending the Fn key as a modifier to CLI/TUI programs because the Fn key is not included in the terminal keyboard protocol.

Closing as nothing Yazi can do