Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to exit app? #65

Open
pjebs opened this issue Jan 2, 2018 · 9 comments
Open

How to exit app? #65

pjebs opened this issue Jan 2, 2018 · 9 comments
Labels

Comments

@pjebs
Copy link
Contributor

pjebs commented Jan 2, 2018

I ran some of your demos.
I don't know how to exit.
Normally Control+C or Control+D exits app.

@VladimirMarkelov
Copy link
Owner

VladimirMarkelov commented Jan 2, 2018

Yes, I did not use Ctrl+C or Ctrl+D - termbox demos do not use it as well. Ctrl+C is occupied - it is used to copy EditField text to clipboard. So, I used double Ctrl+Q(that is often GUI app default exit combination). I mentioned it in docs (Introduction part), maybe it is hard to spot at first site. Here is a doc quotation:

Windows can be manipulated with both mouse and keyboard - the library provides built-in hotkeys to do common tasks like Window moving or resizing (and extra key sequence 'CtrlQ CtrlQ' to exit an application)

@pjebs
Copy link
Contributor Author

pjebs commented Jan 8, 2018

For a mac, is Cmd+C used to copy text.
Currently Ctrl+C is copying text but that is not correct behaviour.

For a password protected editbox, the Copy text should be disabled for a mac.

@VladimirMarkelov
Copy link
Owner

Currently Ctrl+C is copying text but that is not correct behaviour.

What if I add MacOS standard copy/paste combination to existing ones(Ctrl+C & Ctrl+V are often used in Windows)? In this case, please, provide those combinations.

@pjebs
Copy link
Contributor Author

pjebs commented Jan 9, 2018

Cut - Cmd+X
Copy - Cmd+C
Paste - Cmd+V

You can use build constraints for darwin at the top of the Go files.

On Mac for command line programs, Ctrl+C (Sig Interrupt which usually kills program) and Ctrl+D (EOF - intention to exit)

https://superuser.com/questions/169051/whats-the-difference-between-c-and-d-for-unix-mac-os-x-terminal

@pjebs
Copy link
Contributor Author

pjebs commented Jan 9, 2018

what else do you want to know?

@VladimirMarkelov
Copy link
Owner

Oh. Sorry. It seems I got it wrong. You did not want to change copy/paste combination. You just wanted to disable copy for password protected fields? Is it correct? In this case I'll fix it tomorrow.

@pjebs
Copy link
Contributor Author

pjebs commented Jan 9, 2018

For mac it should use Cmd+C for copy instead of Ctrl+C.
Also, disable copy for password protected fields

@VladimirMarkelov
Copy link
Owner

If you accept that I proposed in #66 then I close this ticket and that one will be used for both issues

@pjebs
Copy link
Contributor Author

pjebs commented Sep 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants