theAbdoSabbagh / UnlimitedGPT

An unofficial Python wrapper for OpenAI's ChatGPT API
https://pypi.org/project/UnlimitedGPT/
GNU General Public License v3.0
346 stars 43 forks source link

[BUG] Control + Shift + C does not work on Mac #33

Closed im-alihashmi14 closed 1 year ago

im-alihashmi14 commented 1 year ago

Description

When attempting to use the key combination Control + Shift + C in a macOS environment while using UnlimitedGPT, the expected behavior of the key combination is not occurring.

I fixed it by using the following update

Code used

def _get_new_response(self):
        body = self.driver.find_element(By.TAG_NAME, "body")
        body.send_keys(Keys.COMMAND, Keys.LEFT_SHIFT, "c")
        return pyperclip.paste()

Checklist

Please add a check for MacOS to use Command instead of Control

theAbdoSabbagh commented 1 year ago

Hi, thanks for making this issue. When I added that copy feature I knew MacOS users are gonna face troubles but I didn't know if they even had the same key shortcuts as on Windows, so I just didn't bother adding a check for it. I'll release a fix to it soon. Could you please tell me about other key shortcuts that you have on the website if there are ones different than Windows, besides using command instead of control?

im-alihashmi14 commented 1 year ago

Thanks. Actually I don't know any other keys. I just faced this issue so I searched the required keys for a copy. Whenever you implement some keys related feature try to add checks for other platforms too.

theAbdoSabbagh commented 1 year ago

Fixed in 0.1.9.3. Please update to the new version to fix this issue, and let me know if it still persists

theAbdoSabbagh commented 1 year ago

Bug fixed.