question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Console gets cluttered when PyKeyboardEvent._tap doesn't recognize keycodes pressed

See original GitHub issue

I keep getting messages like :

Unable to determine character.
Keycode: 65 KeySym 0

in my console, each time I press Shift+Space (not that I mean to, it just happens and clutters the console).

It also happens when I press Ctrl+Shift+Tab, which I do mean to press (Keycode 23 KeySym 65056) and C+S+ left and right arrows (Keycode 113/114 Keysym 0), among others.

As a new user, it makes me think keypresses are listened to, which I didn’t see advertised and feels slightly worrying. I can only hope it is not logged in order, at most in aggregated form. I mean, I type passwords sometimes, and very much want that signal to be forgotten on the spot by all watchers. Even in aggregated form, I’m not sure I want to store statistics about how my typing contains many more %, &, and w than otherwise usual, or how some days all I type are the letters “adoprssw”. Very less all individual events with high-precision timing, which is what the docs seems to indicate.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
ErikBjarecommented, Jul 16, 2017

@nikanar: Regarding manual logging: I’m interested in that as well, but I’m a bit apprehensive about expanding the scope of ActivityWatch to include it at this point in development. It would be rather easy to write a ActivityWatch client that stores the data in the ActivityWatch datastore. That way you could leverage some of the visualization work we are doing. I do manual logging right now with a simple textfile (using Standard Notes), works well for me across all devices but lacks any visualization.

It’s certainly something I’d want to add to the web UI (RescueTime-style), but right now it’s not a priority. If you have any ideas, feel free to create an issue.

Regarding programmatical export: Check out the aw-client library, it makes fetching events easy from Python. Not very well documented right now, but the code should be pretty clear.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I detect the KeyboardEvent for the escape key?
keypress is only triggered when a printable character is pressed. For all keys, you need to work with keyup or keydown . From...
Read more >
KeyboardEvent.keyCode - Web APIs - MDN Web Docs
The value of key events which are caused by pressing or releasing printable keys in standard position is not compatible between browsers. IE ......
Read more >
How to detect the key events in JavaScript - Educative.io
Detecting Ctrl + z. Check to see if the meta key is true and if the event code is KeyZ or the key...
Read more >
JavaScript Keycode List – Keypress Event Key Codes for ...
keydown, keypress, keyup - which one should you use? · keydown : It fires when any key is pressed down. · keypress :...
Read more >
Checking for Keyboard Events in JavaScript with Cross ...
KeyCode was deprecated because in practice it was “inconsistent across platforms and even the same implementation on different operating systems or using ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found