Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

nemo-terminal: F4 toggle doesn't work when VTE terminal has keyboard focus

Open
#586 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
74/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Quiet
Tech stack
python
Domain
cli, desktop

Research direction

Start in nemo_terminal.py at _toggle_visible() and inspect how the Nemo window receives F4 while the VTE terminal has focus. Reproduce the listed steps, then evaluate the existing window key handler and the suggested accelerator or terminal-level handling. Done means F4 opens and closes the embedded terminal without requiring focus to move elsewhere.

Written by the indexing model from the issue text.

Description

Steps to reproduce:

  1. Open Nemo
  2. Press F4 to open the embedded terminal
  3. Type something in the terminal (terminal has keyboard focus)
  4. Press F4 again to close the terminal

Expected: Terminal closes (toggle).
Actual: F4 is consumed by the VTE terminal widget; nothing happens. Must click outside the terminal first to move focus to the file list, then F4 works.

Comparison: Dolphin's embedded terminal (Konsole) handles this correctly — F4 toggles regardless of where the focus is.

Root cause: In nemo_terminal.py:_toggle_visible() (line 572), the key-press-event is connected to the Nemo window with connect_after, but when the VTE terminal widget has focus, it consumes the key event and it never reaches the window handler.

Suggested fix: Either:

  • Add F4 as an accelerator on the window (not just a key-press handler), so it works regardless of focus
  • Or use a global keybinding that's not consumed by VTE
  • Or connect the key handler on the terminal widget itself instead of the window

Tested on Linux Mint 22.3, nemo-terminal 6.6.0.

Dominant language
C
Stars
487
Forks
171
Avg merge
10d 19h
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from linuxmint/nemo-extensions

All issues in linuxmint/nemo-extensions

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.