Skip to content
Sign upLog in
← Back to Community
The shift key doesn't work in my code.
Profile icon
YPD

I have made a simple web browser. If it doesn't work, then in the shell, type 'pip install PyQtWebEngine', and then press run. You might use the web browser, but when I try to sign in to my Google account, my e-mail has an @ sign, of course, and it isn't letting me use the shift key, or the Caps Lock. How do I make those keys work in it?

Voters
Profile icon
YPD
Comments
hotnewtop
Profile icon
Coder100

nope, repl.it doesn't capture them in their display. This is a seriously annoying bug

report it here

Profile icon
YPD

@Coder100
Ok, I reported it. Thanks.

Profile icon
AloeBest

Actually you can do something like this:

import keyboard keyboard.press_and_release('shift, space') keyboard.add_hotkey('ctrl+shift+a', print, args=('triggered', 'hotkey'))
Profile icon
YPD

@AloegelhiPlaysR
It isn't working.

Profile icon
AloeBest

Repl doesn't have support with shift. I'm sorry.

@YPD

Profile icon
RYANTADIPARTHI

You need to use a module called keyboard to access keys like that. they aren't accessed normally.