Skip to content

Commit

Permalink
Fix DateBox stealing ALT commands
Browse files Browse the repository at this point in the history
Dispatch keypresses involving the ALT key. Otherwise ALT+Up/Down
doesn't work any more to go to next/previous transactions when the
datebox has focus.
  • Loading branch information
humdingerb committed Aug 11, 2024
1 parent f400ec9 commit 35d73b3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DateBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ filter_result
DateBoxFilter::KeyFilter(const int32& key, const int32& mod)
{
// Here is where all the *real* work for a date box is done.
if (mod & B_COMMAND_KEY)
return B_DISPATCH_MESSAGE;

if (key == B_TAB) {
if (!((DateBox*)TextControl())->IsTabFiltering())
return B_DISPATCH_MESSAGE;
Expand Down

0 comments on commit 35d73b3

Please sign in to comment.