Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1247

Python • Suggestion for two hotkeys

$
0
0
So I thought that the programming would be the hardest part of my project. Boy, was I wrong! I have written a program (Python/Kivy) which displays information, and the idea is to view this in a window organized next to another window. Now, the "other window" could be anything, although mostly this is VS Code or Chrome with Gmail. The "other window" is in focus, while my app listens in the background to shortcuts to change the info that's displayed. The idea is that I do not have to change between windows to update or change the view in my app (OK, I got tired of alt+tab the whole time to switch the focus between windows ;-)

While I have everything working as it should, I'm having a hard time to just find two keyboard shortcuts that don't do anything in "the other program". While programming, I used <ctrl> + <alt> + <arrow down> and <arrow up> to move the info. When trying it seemed to work together with Gmail, but I'm finding issues now. In VS Code, this combination suddenly makes appear several cursors, and everything I type afterwards is inserted in each one of them. When I try Libreoffice Writer the combination seems to mess with the order of the paragraphs. And so on.

So, basically I'm asking advice for finding two hotkey combinations that are not used yet in other program, and are easy to use, and preferably together on the keyboard. I'd need one for "up" or "previous" and one for "down" or "next". Oh, and avoiding the numeric keyboard, as not all of my computers have one ;-)

Any hint would be highly apreciated!

Statistics: Posted by kheylen25 — Tue Nov 05, 2024 7:28 pm



Viewing all articles
Browse latest Browse all 1247

Trending Articles