[Koha-bugs] [Bug 11567] New: Shortcut is searching with every keypress

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jan 16 09:26:11 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11567

            Bug ID: 11567
           Summary: Shortcut is searching with every keypress
 Change sponsored?: ---
           Product: Koha
           Version: 3.14
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: Staff Client
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: vanoudt at gmail.com
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com

Just updated to 3.14.1, and noticed that any keypress (including F3!!) anywhere
on most staff pages (including in input fields in the system preferences)
activates the "Search" shortcut.

For instance, in system preferences, if you try and search for a system
preference, you start typing and it instead types one letter into the "Search
the catalogue" field and then does the search.

This makes the staff interface quite useless IMHO.

A simple fix - I think, not sure if it's right - is to set the default_option
for "disable_in_input" to true in /intranet-tmpl/lib/shortcut/shortcut.js. THat
is:

        var default_options = {
            'type':'keydown',
            'propagate':false,
            'disable_in_input':true,
            'target':document,
            'keycode':false
        }

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list