Changeset 125

Show
Ignore:
Timestamp:
2007-02-18 12:45:59 (2 years ago)
Author:
MaierMan
Message:

SPACE will toggle selection
http://bugzilla.mozdev.org/show_bug.cgi?id=16175

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/chrome/content/dta/dta.js

    r108 r125  
    355355                        this.changeTab(Preferences.getDTA("seltab", 0) ? 'images': 'links'); 
    356356 
     357                        $("urlList").addEventListener( 
     358                                'keypress', 
     359                                function(evt) { 
     360                                        if (evt.charCode == ' '.charCodeAt(0)) { 
     361                                                Dialog.toggleSelection(); 
     362                                        } 
     363                                }, 
     364                                true 
     365                        ); 
     366                         
    357367                } catch(ex) { 
    358368                        DTA_debug.dump("load():", ex); 
  • trunk/chrome/content/dta/select.xul

    r62 r125  
    5050        <keyset> 
    5151                <key keycode="VK_ESCAPE" oncommand="self.close();"/> 
    52                 <key keycode="VK_SPACE" oncommand="Dialog.toggleSelection();"/> 
    5352                <key id="kMacEsc" modifiers="accel" key="W" oncommand="self.close();"/> 
    5453                <key keycode="VK_RETURN" oncommand="Dialog.download(true);"/>