broot icon indicating copy to clipboard operation
broot copied to clipboard

Character inputs that require the Alt key are not working

Open mp-t opened this issue 1 year ago • 10 comments

When trying to input text to search for that requires usage of the Alt key, e.g. the backslash \ on the German keyboard layout, broot just eats the input and does not register a character.

Tested on Windows Terminal and Windows conhost. Broot version 1.26.1

mp-t avatar Jan 10 '24 13:01 mp-t

Many shortcuts involving the alt keys aren't usable in ANSI terminals.

You can use print_keys to check what's available, and how it's received by the TUI application: https://github.com/Canop/print_key

Canop avatar Jan 10 '24 13:01 Canop

Not sure if I follow completely but you can use those key combinations in both terminals directly as well as other applications running inside those terminals.

mp-t avatar Jan 10 '24 13:01 mp-t

I don't have the same keyboard than you so it's a little hard to be sure. Can you tell me what print_key says when you type the intended combination, and whether it looks right to you ?

Canop avatar Jan 10 '24 14:01 Canop

The right Alt key is interpreted as Ctrl+Alt. This is reflected in the print_key output:

You typed Ctrl-Alt-\

This looks correct to me.

mp-t avatar Jan 10 '24 19:01 mp-t

I could maybe help with this one, i will give it a try the coming week

FrancescElies avatar Jul 12 '24 17:07 FrancescElies

@Canop I could reproduce the issue. this personally does not affect me but since I happen to have german keyboard, for this experiment I switched from US to DE input.

Bottom right you see keys as I press them, where you see ctr+alt+[ imagine altgr+\, don't ask me why the keyboard logger shows that instead of altgr+\.

image

Below a screen recording of the thing.

https://github.com/user-attachments/assets/867b5064-3128-4477-b4a1-50e05435bc9b

@Canop shouldn't print-key see \ instead of Ctrl-Alt-\?

FrancescElies avatar Jul 15 '24 19:07 FrancescElies

Is the problem specifically related to ctrl-alt-\ or to any combination involving alt-\ ?

Canop avatar Jul 15 '24 19:07 Canop

any combination with altgr, same issue for the } and ] which are on the left side of the \

image

FrancescElies avatar Jul 15 '24 19:07 FrancescElies

@Canop I believe this is the issue we are seeing here https://github.com/crossterm-rs/crossterm/issues/820

FrancescElies avatar Jul 17 '24 15:07 FrancescElies