-
-
Couldn't load subscription status.
- Fork 1.6k
Remove the up/down shortcut to launch canned messages #8370
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
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -360,16 +360,7 @@ int CannedMessageModule::handleInputEvent(const InputEvent *event) | |
| return handleEmotePickerInput(event); | ||
|
|
||
| case CANNED_MESSAGE_RUN_STATE_INACTIVE: | ||
| if (isSelect) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we know what exactly this was doing? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe while in the module screen on an inactive state, it was preventing the select button from mistakenly moving you out of the screen since select is also used to pull action menu. It was intercepting it so it did nothing. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Basically correct. It was a short circuit to make sure the select button didn't do anything, and that event got passed into the screen handler. |
||
| return 0; // Main button press no longer runs through powerFSM | ||
| } | ||
| // Let LEFT/RIGHT pass through so frame navigation works | ||
| if (event->inputEvent == INPUT_BROKER_LEFT || event->inputEvent == INPUT_BROKER_RIGHT) { | ||
| break; | ||
| } | ||
| // Handle UP/DOWN: activate canned message list! | ||
| if (event->inputEvent == INPUT_BROKER_UP || event->inputEvent == INPUT_BROKER_DOWN || | ||
| event->inputEvent == INPUT_BROKER_ALT_LONG) { | ||
| if (event->inputEvent == INPUT_BROKER_ALT_LONG) { | ||
| LaunchWithDestination(NODENUM_BROADCAST); | ||
| return 1; | ||
| } | ||
|
|
@@ -383,6 +374,7 @@ int CannedMessageModule::handleInputEvent(const InputEvent *event) | |
| // Immediately process the input in the new state (freetext) | ||
| return handleFreeTextInput(event); | ||
| } | ||
| return 0; | ||
| break; | ||
|
|
||
| // (Other states can be added here as needed) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.