mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 11:05:55 +00:00
Fix button focus issues
This change introduces derived classes for ComboButton, DropDownButton and Select that make sure that buttons do not remain focused after their menus are closed. This allows using hotkeys after closing them.
This commit is contained in:
@@ -170,7 +170,7 @@
|
||||
|
||||
<select name="view_mode" title="<?php echo __('Show articles') ?>"
|
||||
onchange="App.onViewModeChanged()"
|
||||
dojoType="dijit.form.Select">
|
||||
dojoType="fox.form.Select">
|
||||
<option selected="selected" value="adaptive"><?php echo __('Adaptive') ?></option>
|
||||
<option value="all_articles"><?php echo __('All Articles') ?></option>
|
||||
<option value="marked"><?php echo __('Starred') ?></option>
|
||||
@@ -182,7 +182,7 @@
|
||||
|
||||
<select title="<?php echo __('Sort articles') ?>"
|
||||
onchange="App.onViewModeChanged()"
|
||||
dojoType="dijit.form.Select" name="order_by">
|
||||
dojoType="fox.form.Select" name="order_by">
|
||||
|
||||
<option selected="selected" value="default"><?php echo __('Default') ?></option>
|
||||
<option value="feed_dates"><?php echo __('Newest first') ?></option>
|
||||
@@ -190,7 +190,7 @@
|
||||
<option value="title"><?php echo __('Title') ?></option>
|
||||
</select>
|
||||
|
||||
<div dojoType="dijit.form.ComboButton" onclick="Feeds.catchupCurrent()">
|
||||
<div dojoType="fox.form.ComboButton" onclick="Feeds.catchupCurrent()">
|
||||
<span><?php echo __('Mark as read') ?></span>
|
||||
<div dojoType="dijit.DropDownMenu">
|
||||
<div dojoType="dijit.MenuItem" onclick="Feeds.catchupCurrent('1day')">
|
||||
@@ -215,7 +215,7 @@
|
||||
}
|
||||
?>
|
||||
|
||||
<div dojoType="dijit.form.DropDownButton" class="action-button" title="<?php echo __('Actions...') ?>">
|
||||
<div dojoType="fox.form.DropDownButton" class="action-button" title="<?php echo __('Actions...') ?>">
|
||||
<span><i class="material-icons">menu</i></span>
|
||||
<div dojoType="dijit.Menu" style="display: none">
|
||||
<div dojoType="dijit.MenuItem" onclick="App.onActionSelected('qmcPrefs')"><?php echo __('Preferences...') ?></div>
|
||||
|
||||
Reference in New Issue
Block a user